aboutsummaryrefslogtreecommitdiff
path: root/src/utf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utf.c')
-rw-r--r--src/utf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utf.c b/src/utf.c
index cf2e8e4..2efcb68 100644
--- a/src/utf.c
+++ b/src/utf.c
@@ -6,8 +6,9 @@
*/
#include <string.h>
+#include <stdint.h>
-int utf8_encode(int codepoint, char *buffer, int *size)
+int utf8_encode(int32_t codepoint, char *buffer, int *size)
{
if(codepoint < 0)
return -1;
@@ -81,7 +82,8 @@ int utf8_check_first(char byte)
int utf8_check_full(const char *buffer, int size)
{
- int i, value = 0;
+ int i;
+ int32_t value = 0;
unsigned char u = (unsigned char)buffer[0];
if(size == 2)