mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-04 19:56:34 +02:00
Issue #432 - Use standard integer data types
Previous non-standard declarations were causing problems on WASM platform
This commit is contained in:
parent
00427550e4
commit
cdf4de6611
1 changed files with 2 additions and 2 deletions
|
@ -3568,7 +3568,7 @@ static int Cyc_checked_mul(int x, int y, int *result)
|
|||
{
|
||||
// Avoid undefined behavior by detecting overflow prior to multiplication
|
||||
// Based on code from Hacker's Delight and CHICKEN scheme
|
||||
uint xu, yu, c;
|
||||
unsigned int xu, yu, c;
|
||||
c = (1UL<<30UL) - 1;
|
||||
xu = x < 0 ? -x : x;
|
||||
yu = y < 0 ? -y : y;
|
||||
|
@ -8126,7 +8126,7 @@ uint32_t Cyc_utf8_validate(char *str, size_t len) {
|
|||
*/
|
||||
int Cyc_utf8_encode(char *dest, int sz, uint32_t *src, int srcsz)
|
||||
{
|
||||
u_int32_t ch;
|
||||
uint32_t ch;
|
||||
int i = 0;
|
||||
char *dest_end = dest + sz;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue