looks like multiplication is also the same between signed and unsigned
This commit is contained in:
parent
6a745a01fa
commit
d96c733069
6
expr.c
6
expr.c
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/expr.c,v 1.63 2013/03/31 18:33:13 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/expr.c,v 1.64 2013/04/01 01:02:09 tg Exp $");
|
||||||
|
|
||||||
#if !HAVE_SILENT_IDIVWRAPV
|
#if !HAVE_SILENT_IDIVWRAPV
|
||||||
#if !defined(MKSH_LEGACY_MODE) || HAVE_LONG_32BIT
|
#if !defined(MKSH_LEGACY_MODE) || HAVE_LONG_32BIT
|
||||||
@ -476,8 +476,7 @@ evalexpr(Expr_state *es, int prec)
|
|||||||
break;
|
break;
|
||||||
case O_TIMES:
|
case O_TIMES:
|
||||||
case O_TIMESASN:
|
case O_TIMESASN:
|
||||||
/* all bivui users need special handling */
|
res = vl->val.u * vr->val.u;
|
||||||
res = bivui(vl, *, vr);
|
|
||||||
break;
|
break;
|
||||||
case O_PLUS:
|
case O_PLUS:
|
||||||
case O_PLUSASN:
|
case O_PLUSASN:
|
||||||
@ -494,6 +493,7 @@ evalexpr(Expr_state *es, int prec)
|
|||||||
break;
|
break;
|
||||||
case O_RSHIFT:
|
case O_RSHIFT:
|
||||||
case O_RSHIFTASN:
|
case O_RSHIFTASN:
|
||||||
|
/* all bivui users need special handling */
|
||||||
res = bivui(vl, >>, vr);
|
res = bivui(vl, >>, vr);
|
||||||
break;
|
break;
|
||||||
/* how about rotation? */
|
/* how about rotation? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user