* decimal.c (rescale128): Put back one line which was accidently commented
out.
svn path=/trunk/mono/; revision=104793
2008-06-03 Zoltan Varga <vargaz@gmail.com>
+ * decimal.c (rescale128): Put back one line which was accidently commented
+ out.
+
* decimal.c (rescale128): Disable the code added by the last patch, as it seems
to cause crashes.
/* The original loop was this: */
/*
- while (texp > 1 && (overhang > (2<<DECIMAL_MAX_INTFACTORS) || (*pclo & 1) == 0)) {
+ while (texp > 0 && (overhang > (2<<DECIMAL_MAX_INTFACTORS) || (*pclo & 1) == 0)) {
if (--texp == 0)
roundBit = (int)(*pclo & 1);
rshift128(pclo, pchi);
}
*/
+ prev_lo = *pclo;
/*
* FIXME: This code seems to cause crashes on the x86 buildbot during the
* System.Data.DataSetExtensions tests.
- prev_lo = *pclo;
if (overhang > 0) {
int msf = my_g_bit_nth_msf (overhang);
int shift = msf - (DECIMAL_MAX_INTFACTORS + 2);