fix for type mismatch with SWAP() macro.
[blender.git] / source / blender / editors / curve / editcurve.c
index bc154de9691a1cc2d3b06ee1de07e2d899ff9e19..e2d15897233bf8599be567d0bff3234ef171bdb4 100644 (file)
@@ -1938,7 +1938,7 @@ static void adduplicateflagNurb(Object *obedit, short flag)
                                }
                                else {
 
-                                       if (newu == 1) SWAP(short, newu, newv);
+                                       if (newu == 1) SWAP(int, newu, newv);
 
                                        newnu = (Nurb *)MEM_mallocN(sizeof(Nurb), "adduplicateN5");
                                        memcpy(newnu, nu, sizeof(Nurb));