From 48a7cd3c8788799505b4fa9f84cb8f5979397c29 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Sat, 20 Feb 2021 14:37:32 -0800 Subject: [Examples] Fix typecast warnings in examples. (#1601) * Fixing typecast warnings generated by visual studio 2019 in examples. * Changes to fixes based on feedback Co-authored-by: Jeffery Myers --- src/raymath.h | 2 +- src/rlgl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/raymath.h b/src/raymath.h index c9848a7f..63fc9696 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -75,7 +75,7 @@ // Defines and Macros //---------------------------------------------------------------------------------- #ifndef PI - #define PI 3.14159265358979323846 + #define PI 3.14159265358979323846f #endif #ifndef DEG2RAD diff --git a/src/rlgl.h b/src/rlgl.h index ab23b3ab..3bd79a36 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -4922,7 +4922,7 @@ char *LoadFileText(const char *fileName) if (size > 0) { text = (char *)RL_MALLOC((size + 1)*sizeof(char)); - int count = fread(text, sizeof(char), size, textFile); + int count = (int)fread(text, sizeof(char), size, textFile); // WARNING: \r\n is converted to \n on reading, so, // read bytes count gets reduced by the number of lines -- cgit v1.2.3