Ignore:
Timestamp:
Feb 27, 2013, 8:15:19 PM (10 years ago)
Author:
sam
Message:

math: don't use the LLU suffix for 64-bit numbers and don't use floorf().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/math/rand.h

    r2524 r2526  
    9595            ret = (ret << 8) ^ std::rand();
    9696        }
    97         return static_cast<T>(ret & 0x7fffffffffffffffllu);
     97        return static_cast<T>(ret & (~(uint64_t)0 >> 1));
    9898    }
    9999    default:
Note: See TracChangeset for help on using the changeset viewer.