Changeset 1750 for trunk


Ignore:
Timestamp:
Dec 3, 2011, 2:57:11 PM (8 years ago)
Author:
ksherdy
Message:

Updated C style cast to C++ reinterpret_cast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/allocator.hpp

    r1748 r1750  
    7474
    7575                uint32_t i = segment_size - available;
    76                 uint64_t address = (uint64_t) &(tail->segment[i]);
     76                uint64_t address = reinterpret_cast<uint64_t>(&(tail->segment[i]));
    7777                uint64_t padding = ((address % ALIGNMENT) == 0) ? 0 :  ALIGNMENT - (address % ALIGNMENT);
    7878                available -= (padding + n);
Note: See TracChangeset for help on using the changeset viewer.