diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-15 19:56:18 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-15 19:56:18 (GMT) |
commit | a87c4451771edb310eba1f37f7d2908456b41528 (patch) | |
tree | 24571793a8c8eb12eb03d895b1ed2184e80a74f2 | |
parent | 2ae3c91db290af53360571e06f76a7e0c5549b3f (diff) | |
download | cpython-a87c4451771edb310eba1f37f7d2908456b41528.zip cpython-a87c4451771edb310eba1f37f7d2908456b41528.tar.gz cpython-a87c4451771edb310eba1f37f7d2908456b41528.tar.bz2 |
Remove C99ism.
-rw-r--r-- | Parser/parsetok.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index 48236a7..4c533f1 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -186,9 +186,10 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, err_ret->error = E_EOF; err_ret->lineno = tok->lineno; if (tok->buf != NULL) { + size_t len; assert(tok->cur - tok->buf < INT_MAX); err_ret->offset = (int)(tok->cur - tok->buf); - size_t len = tok->inp - tok->buf; + len = tok->inp - tok->buf; err_ret->text = (char *) PyObject_MALLOC(len + 1); if (err_ret->text != NULL) { if (len > 0) |