aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Loach <robloach@gmail.com>2019-01-23 22:28:10 -0500
committerGitHub <noreply@github.com>2019-01-23 22:28:10 -0500
commit90d5bb79e58b7d56936e5b6db78e1caa7a43a4ec (patch)
treee2073f74129ab114fc7544ab965ec9c4a0e77d09 /src
parent68db3a894a9344b5bd30d1eb8a746ade2cfb9b8f (diff)
downloadraylib-90d5bb79e58b7d56936e5b6db78e1caa7a43a4ec.tar.gz
raylib-90d5bb79e58b7d56936e5b6db78e1caa7a43a4ec.zip
Fix font cannot be narrowed to type 'int'
Getting the following strict error.... ``` src/text.c:117:105: error: constant expression evaluates to 2398692640 which cannot be narrowed to type 'int' [-Wc++11-narrowing] ...0x00000000, 0x00000000, 0x00200020, 0x0001b000, 0x00000000, 0x00000000, 0x8ef92520, 0x00020a00... ^~~~~~~~~~ ``` Switching it to an unsigned int fixes it.
Diffstat (limited to 'src')
-rw-r--r--src/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index c39592c5..03fd982c 100644
--- a/src/text.c
+++ b/src/text.c
@@ -113,7 +113,7 @@ extern void LoadDefaultFont(void)
// Default font is directly defined here (data generated from a sprite font image)
// This way, we reconstruct Font without creating large global variables
// This data is automatically allocated to Stack and automatically deallocated at the end of this function
- int defaultFontData[512] = {
+ unsigned int defaultFontData[512] = {
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00200020, 0x0001b000, 0x00000000, 0x00000000, 0x8ef92520, 0x00020a00, 0x7dbe8000, 0x1f7df45f,
0x4a2bf2a0, 0x0852091e, 0x41224000, 0x10041450, 0x2e292020, 0x08220812, 0x41222000, 0x10041450, 0x10f92020, 0x3efa084c, 0x7d22103c, 0x107df7de,
0xe8a12020, 0x08220832, 0x05220800, 0x10450410, 0xa4a3f000, 0x08520832, 0x05220400, 0x10450410, 0xe2f92020, 0x0002085e, 0x7d3e0281, 0x107df41f,
@@ -1426,4 +1426,4 @@ static Font LoadBMFont(const char *fileName)
return font;
}
-#endif \ No newline at end of file
+#endif