Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1840 for code/trunk


Ignore:
Timestamp:
Sep 27, 2008, 10:04:01 PM (16 years ago)
Author:
adrfried
Message:

integer overflow fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/util/Math.h

    r1823 r1840  
    220220inline _UtilExport float rnd()
    221221{
    222     return ((float)rand() / (RAND_MAX + 1));
     222    return rand() / (RAND_MAX + 1.0);
    223223}
    224224
Note: See TracChangeset for help on using the changeset viewer.