* Fix Verse bug [#8959] Clients doesn't connect if libverse.a is compiled with -O2
authorNathan Letwory <nathan@letworyinteractive.com>
Wed, 30 Apr 2008 22:42:12 +0000 (22:42 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Wed, 30 Apr 2008 22:42:12 +0000 (22:42 +0000)
  Merged from Verse SVN (r4524). See Verse bug tracker for bug report.

extern/verse/dist/v_bignum.c

index 3f3ea7f9ccc680da36cd288a18829e7d11e59185..3f65af034270ec9354854b7ffc96a0da09b5dd28 100644 (file)
@@ -768,7 +768,7 @@ void v_bignum_square_half(VBigDig *x)
                for(j = i + 1; j < t; j++)
                {
 /*                     printf("computing uv=%X+2*%X*%X+%X\n", w[i + j], x[1 + j], x[1 + i], c);*/
-                       uv = x[1 + j] * x[1 + i];
+                       uv = ((VBigDigs)x[1 + j]) * ((VBigDigs)x[1 + i]);
                        high = (uv & 0x80000000) != 0;
                        uv *= 2;
                        ouv = uv;       /* Addition below might wrap and generate high bit. */