thumbs.c: warning fixes
[blender.git] / source / blender / src / filelist.c
index fbf514ce02d4628c29a9fa378eab2e6535e8af15..23a5e73f7cdc4c63dedb6f3ccb0a16e76d4d829c 100644 (file)
@@ -481,7 +481,7 @@ void BIF_filelist_loadimage(struct FileList* filelist, int index)
                                        scaledy =  ( (float)imb->y/(float)imb->x )*imgwidth;
                                }
                                else {
-                                       scaledy = imgheight;
+                                       scaledy = (float)imgheight;
                                        scaledx =  ( (float)imb->x/(float)imb->y )*imgheight;
                                }
                                ex = (short)scaledx;