]> git.saurik.com Git - wxWidgets.git/commitdiff
Typecasts added to prevent compiler warnings
authorGeorge Tasker <gtasker@allenbrook.com>
Mon, 14 Aug 2000 12:00:58 +0000 (12:00 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Mon, 14 Aug 2000 12:00:58 +0000 (12:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/tex2rtf/src/texutils.cpp

index eec52b6db1acb44889a56ed88a144b29e6c99d1a..77ca009c1afafe5b45a1f92b88c9732201cc70fd 100644 (file)
@@ -239,9 +239,9 @@ int ParseUnitArgument(char *unitArg)
       if (strcmp(units, "in") == 0)
         conversionFactor = 72.0;
       else if (strcmp(units, "cm") == 0)
-        conversionFactor = 72.0/2.51;
+        conversionFactor = (float)72.0/(float)2.51;
       else if (strcmp(units, "mm") == 0)
-        conversionFactor = 72.0/25.1;
+        conversionFactor = (float)72.0/(float)25.1;
       else if (strcmp(units, "pt") == 0)
         conversionFactor = 1;
     }