diff options
| author | Jeffery Myers <[email protected]> | 2021-02-20 14:37:32 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-20 23:37:32 +0100 |
| commit | 48a7cd3c8788799505b4fa9f84cb8f5979397c29 (patch) | |
| tree | f9cbed3827f8855d0e3c27916930b9d82de3e423 /src | |
| parent | 82cdd88ffe6cb9d2f97e34bd0724d791030372bf (diff) | |
| download | raylib-48a7cd3c8788799505b4fa9f84cb8f5979397c29.tar.gz raylib-48a7cd3c8788799505b4fa9f84cb8f5979397c29.zip | |
[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 <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/raymath.h | 2 | ||||
| -rw-r--r-- | src/rlgl.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ -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 |
