📝 change int in code to i32, optimize code.

This commit is contained in:
ValKmjolnir
2022-07-31 02:19:29 +08:00
parent 7ad1d69c64
commit 068743aa4c
8 changed files with 58 additions and 60 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ f64 str2num(const char* str)
return negative?-res:res;
}
int utf8_hdchk(const char head)
i32 utf8_hdchk(const char head)
{
// RFC-2279 but now we use RFC-3629 so nbytes is less than 4
const u8 c=(u8)head;