diff options
| author | Ahmad Fatoum <[email protected]> | 2018-02-25 03:17:57 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-02-25 03:17:57 +0100 |
| commit | 80bf636f816058370d2d0b8295af3e89919c29e2 (patch) | |
| tree | e3a44ceae865debbb7e9f5f23a9c6dfa2367a814 /src/text.c | |
| parent | 76aca9b0d1f8409b055c858d0a9c5a9fff00d007 (diff) | |
| download | raylib-80bf636f816058370d2d0b8295af3e89919c29e2.tar.gz raylib-80bf636f816058370d2d0b8295af3e89919c29e2.zip | |
Don't exceed signed int range when shifting left
Fixes UB in #489, found by UBSan.
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ extern void UnloadDefaultFont(void); // Load raylib default font extern void LoadDefaultFont(void) { - #define BIT_CHECK(a,b) ((a) & (1 << (b))) + #define BIT_CHECK(a,b) ((a) & (1u << (b))) // NOTE: Using UTF8 encoding table for Unicode U+0000..U+00FF Basic Latin + Latin-1 Supplement // http://www.utf8-chartable.de/unicode-utf8-table.pl |
