Win64 commit: first little commit to test how it compiles on other plattforms - I...
[blender.git] / source / blender / blenloader / intern / readfile.c
index ad19cde3c9ba963ad5700bd4cdb848b396056286..495a35bbe4c5022bd40d5c3dc78f8a0a9149e2b6 100644 (file)
@@ -3593,9 +3593,9 @@ static void direct_link_scene(FileData *fd, Scene *sce)
                {
                        Sequence temp;
                        char *poin;
-                       long offset;
+                       intptr_t offset;
                        
-                       offset= ((long)&(temp.seqbase)) - ((long)&temp);
+                       offset= ((intptr_t)&(temp.seqbase)) - ((intptr_t)&temp);
                        
                        /* root pointer */
                        if(ed->seqbasep == old_seqbasep) {
@@ -4094,7 +4094,7 @@ static void direct_link_screen(FileData *fd, bScreen *sc)
        while(se) {
                se->v1= newdataadr(fd, se->v1);
                se->v2= newdataadr(fd, se->v2);
-               if( (long)se->v1 > (long)se->v2) {
+               if( (intptr_t)se->v1 > (intptr_t)se->v2) {
                        sv= se->v1;
                        se->v1= se->v2;
                        se->v2= sv;