Bläddra i källkod

The latest gnu-efi produces the following warning when
compiled with MSVC: lib\print.c(1345): warning C4244:
'initializing': conversion from 'double' to 'float',
possible loss of data

Signed-off-by: Pete Batard <pbatard@users.sf.net>
Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>

Nigel Croxon 8 år sedan
förälder
incheckning
93ef26559c
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      lib/print.c

+ 1 - 1
lib/print.c

@@ -1342,7 +1342,7 @@ FloatToString (
     /*
      * Keep fractional part.
      */
-    float f = v - (float)i;
+    float f = (float)(v - i);
     if (f < 0) f = -f;