fix for building with msvc, ssize_t is more correct but in this case its not going...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 27 Aug 2011 07:06:44 +0000 (07:06 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 27 Aug 2011 07:06:44 +0000 (07:06 +0000)
source/blender/blenkernel/intern/library.c

index 76f114de97bf63639a44914ef231158f369e7684..4d158a6c26c1f7d0a86606abfd14a512c446dc2f 100644 (file)
@@ -671,7 +671,7 @@ void *copy_libblock(void *rt)
        assert(idn != NULL);
 
        idn_len= MEM_allocN_len(idn);
-       if((ssize_t)idn_len - (ssize_t)sizeof(ID) > 0) { /* signed to allow neg result */
+       if((int)idn_len - (int)sizeof(ID) > 0) { /* signed to allow neg result */
                cp= (char *)id;
                cpn= (char *)idn;
                memcpy(cpn+sizeof(ID), cp+sizeof(ID), idn_len - sizeof(ID));