diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-03-16 22:02:17 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-03-16 22:02:17 +0100 |
commit | 2bccb550e1b2217482ddadc90d65bf82d0dfa230 (patch) | |
tree | c6e43057713b54acc860d205173affdb33ff824f /printf | |
parent | 8188a4b4217c268be96c24f25631f69c230a4f6b (diff) | |
download | gmp-2bccb550e1b2217482ddadc90d65bf82d0dfa230.tar.gz |
* printf/doprnt.c, scanf/doscan.c (%zn): Remove test of non-existant
HAVE_SIZE_T, just use size_t unconditionally.
* printf/doprnt.c (%zd etc): Fix 'z' type parsing.
Diffstat (limited to 'printf')
-rw-r--r-- | printf/doprnt.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/printf/doprnt.c b/printf/doprnt.c index 2007f007e..9a26a350a 100644 --- a/printf/doprnt.c +++ b/printf/doprnt.c @@ -374,6 +374,7 @@ __gmp_doprnt (const struct doprnt_funs_t *funs, void *data, case 'q': /* quad_t */ case 'Q': /* mpq_t */ case 't': /* ptrdiff_t */ + case 'z': /* size_t */ case 'Z': /* mpz_t */ set_type: type = fchar; @@ -450,11 +451,7 @@ __gmp_doprnt (const struct doprnt_funs_t *funs, void *data, #else case 't': ASSERT_FAIL (ptrdiff_t not available); break; #endif -#if HAVE_SIZE_T case 'z': * (size_t *) p = retval; break; -#else - case 'z': ASSERT_FAIL (size_t not available); break; -#endif case 'Z': mpz_set_si ((mpz_ptr) p, (long) retval); break; } } |