Bladeren bron

fix problem when compiling with MSVC 2017, built-in CMake: C2177 constant too big

Ethan Trịnh 7 jaren geleden
bovenliggende
commit
741513842a
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      examples/models/models_mesh_picking.c

+ 1 - 1
examples/models/models_mesh_picking.c

@@ -13,7 +13,7 @@
 #include "raylib.h"
 #include "raymath.h"
 
-#define FLT_MAX     3.40282347E+38F     // Maximum value of a float, defined in <float.h>
+#define FLT_MAX     340282346638528859811704183484516925440.0     // Maximum value of a float, from bit pattern 01111111011111111111111111111111
 
 int main()
 {