Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2016, 6:08:13 PM (8 years ago)
Author:
landauf
Message:

fixed code to compile in 64bit mode

Location:
code/trunk/src/external/bullet/LinearMath
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/external/bullet/LinearMath/btAlignedAllocator.cpp

    r8351 r11115  
    6767  real = (char *)sAllocFunc(size + sizeof(void *) + (alignment-1));
    6868  if (real) {
    69     offset = (alignment - (unsigned long)(real + sizeof(void *))) & (alignment-1);
     69    offset = (alignment - (unsigned long long)(real + sizeof(void *))) & (alignment-1);
    7070    ret = (void *)((real + sizeof(void *)) + offset);
    7171    *((void **)(ret)-1) = (void *)(real);
  • code/trunk/src/external/bullet/LinearMath/btSerializer.h

    r8393 r11115  
    248248                        }
    249249                        {
    250                                 nr= (long)cp;
     250                                nr= (long long)cp;
    251251                        //      long mask=3;
    252252                                nr= ((nr+3)&~3)-nr;
     
    283283
    284284                {
    285                                 nr= (long)cp;
     285                                nr= (long long)cp;
    286286                        //      long mask=3;
    287287                                nr= ((nr+3)&~3)-nr;
Note: See TracChangeset for help on using the changeset viewer.