diff --git a/include/Mw/Unicode.h b/include/Mw/Unicode.h index 62794f3..3ac23a4 100644 --- a/include/Mw/Unicode.h +++ b/include/Mw/Unicode.h @@ -19,7 +19,7 @@ extern "C" { * %brief output Output * %return Bytes this multibyte takes */ -MWDECL int MwUTF8ToUTF32(const char* input, int32_t* output); +MWDECL int MwUTF8ToUTF32(const char* input, int* output); #ifdef __cplusplus } diff --git a/src/unicode.c b/src/unicode.c index 940a941..e557dd1 100644 --- a/src/unicode.c +++ b/src/unicode.c @@ -25,7 +25,7 @@ static int utf8_later(unsigned char c) { return 0x80 <= c && c < 0xc0; } -int MwUTF8ToUTF32(const char* input, int32_t* output) { +int MwUTF8ToUTF32(const char* input, int* output) { const unsigned char* inbuf = (const unsigned char*)input; int b = utf8_count(inbuf[0]); if(b == 0) return 0;