Skip to content

Commit 170ea72

Browse files
committed
fixed compilation warnings on big endian system
1 parent d3fbdf0 commit 170ea72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/ffi/ffi_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static int get_skip_sym(void) {
313313
int ch;
314314
int ret;
315315
int accept = -1;
316-
const unsigned char *accept_pos;
316+
const unsigned char *accept_pos = NULL;
317317
const unsigned char *cpos = yy_pos;
318318
const unsigned char *cend = yy_end;
319319

ext/intl/collator/collator_is_numeric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */
6969
char buf[64], *numbuf, *bufpos;
7070
size_t length = u - nstart;
7171
double value;
72-
ALLOCA_FLAG(use_heap);
72+
ALLOCA_FLAG(use_heap = 0);
7373

7474
if (length < sizeof(buf)) {
7575
numbuf = buf;

0 commit comments

Comments
 (0)