summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2021-12-09 20:13:53 +0100
committerRay <[email protected]>2021-12-09 20:13:53 +0100
commitfd0e3a4fdd534a4afaa54fff3fb51622701948cc (patch)
treefacffca07d70a066a774f02cf915acfb16cc0b97 /src
parentfe95d828908535582ab613f431ddbaea076115bc (diff)
downloadraylib-fd0e3a4fdd534a4afaa54fff3fb51622701948cc.tar.gz
raylib-fd0e3a4fdd534a4afaa54fff3fb51622701948cc.zip
REVIEWED: GetCodepoint() #2201
Diffstat (limited to 'src')
-rw-r--r--src/rtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtext.c b/src/rtext.c
index 77b28133..c8367af7 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -1598,7 +1598,7 @@ int GetCodepoint(const char *text, int *bytesProcessed)
if (((octet == 0xe0) && !((octet1 >= 0xa0) && (octet1 <= 0xbf))) ||
((octet == 0xed) && !((octet1 >= 0x80) && (octet1 <= 0x9f)))) { *bytesProcessed = 2; return code; }
- if ((octet >= 0xe0) && (0 <= 0xef))
+ if ((octet >= 0xe0) && (octet <= 0xef))
{
code = ((octet & 0xf) << 12) | ((octet1 & 0x3f) << 6) | (octet2 & 0x3f);
*bytesProcessed = 3;