Skip to content

Commit

Permalink
fix variable's width
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Dec 26, 2011
1 parent b9e8a09 commit 62c3694
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions numeric.c
Expand Up @@ -2384,18 +2384,18 @@ rb_fix_mul(VALUE x, VALUE y)
/* avoids an optimization bug of HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005] */
volatile
#endif
SIGNED_VALUE a, b;
#if SIZEOF_VALUE * 2 <= SIZEOF_LONG_LONG
long a, b;
#if SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
LONG_LONG d;
#else
SIGNED_VALUE c;
long c;
VALUE r;
#endif

a = FIX2LONG(x);
b = FIX2LONG(y);

#if SIZEOF_VALUE * 2 <= SIZEOF_LONG_LONG
#if SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
d = (LONG_LONG)a * b;
if (FIXABLE(d)) return LONG2FIX(d);
return rb_ll2inum(d);
Expand Down

0 comments on commit 62c3694

Please sign in to comment.