Changeset 69:e18298e39a4f in rrlib_util


Ignore:
Timestamp:
21.10.2012 16:10:59 (7 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Fixes for 32 bit platforms

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tTaggedPointer.h

    r68 r69  
    9393   * The bits in this constant may be used in tag. 
    9494   */ 
    95   enum { cSTAMP_MASK = (1 << TAG_BIT_WIDTH) - 1 }; 
     95  enum { cSTAMP_MASK = (1LL << TAG_BIT_WIDTH) - 1LL }; 
     96  static_assert(sizeof(cSTAMP_MASK) == sizeof(uint), "Anything else would not work or waste performance)"); 
    9697 
    9798  tTaggedPointer() {} 
  • tagged_pointer/tTaggedPointerImplementation.h

    r68 r69  
    237237 
    238238template <bool ALIGNED_POINTERS> 
    239 class tTaggedPointerImplementation<19, ALIGNED_POINTERS> 
     239class tTaggedPointerImplementation<32, ALIGNED_POINTERS> 
    240240{ 
    241241public: 
Note: See TracChangeset for help on using the changeset viewer.