diff options
author | Armin Rigo <arigo@tunes.org> | 2015-10-16 10:24:44 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-10-16 10:24:44 +0200 |
commit | d520ac55b34fb253e1ac6aeb521b9d8f94f6b393 (patch) | |
tree | 5395488c54d14d4402cd44236de7b6b0588d2b84 /c | |
parent | 626e8eadaad49b84e687a9df27910f0c8f13b8bd (diff) | |
download | cffi-d520ac55b34fb253e1ac6aeb521b9d8f94f6b393.tar.gz |
win32 fix
Diffstat (limited to 'c')
-rw-r--r-- | c/parse_c_type.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/c/parse_c_type.c b/c/parse_c_type.c index 0af582e..80cd3ff 100644 --- a/c/parse_c_type.c +++ b/c/parse_c_type.c @@ -377,8 +377,12 @@ static int parse_sequel(token_t *tok, int outer) case TOK_INTEGER: errno = 0; if (sizeof(length) > sizeof(unsigned long)) { -#ifdef MS_WIN32 /* actually for win64 */ +#ifdef MS_WIN32 +# ifdef _WIN64 length = _strtoui64(tok->p, &endptr, 0); +# else + abort(); /* unreachable */ +# endif #else length = strtoull(tok->p, &endptr, 0); #endif |