Replace the >>why is this here?? comment by some hard-earned experience with the...
authorErwin Coumans <blender@erwincoumans.com>
Mon, 1 Mar 2010 19:18:56 +0000 (19:18 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Mon, 1 Mar 2010 19:18:56 +0000 (19:18 +0000)
source/blender/blenloader/intern/readfile.c

index fbf3c6f0ebeb02775f8b6e6edf69546353256be5..fbde733f717fee1a366a92ba466e04abf58bd112 100644 (file)
@@ -581,7 +581,8 @@ static void bh4_from_bh8(BHead *bhead, BHead8 *bhead8, int do_endian_swap)
 
        if (bhead4->code != ENDB) {
 
-               // why is this here ??
+               //perform a endian swap on 64bit pointers, otherwise the pointer might map to zero
+               //0x0000000000000000000012345678 would become 0x12345678000000000000000000000000
                if (do_endian_swap) {
                        SWITCH_LONGINT(bhead8->old);
                }