Changeset 1128


Ignore:
Timestamp:
Jan 9, 2012, 11:49:33 PM (7 years ago)
Author:
sam
Message:

math: fix an infinite loop in the real number print function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/real.cpp

    r1126 r1128  
    12751275    }
    12761276
     1277    if (!x)
     1278    {
     1279        printf("0.0\n");
     1280        return;
     1281    }
     1282
    12771283    /* Normalise x so that mantissa is in [1..9.999] */
    12781284    /* FIXME: better use int64_t when the cast is implemented */
Note: See TracChangeset for help on using the changeset viewer.