diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-19 08:31:25 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-19 08:31:25 +0000 |
commit | 324f853c7ef10cf23765b740f3a2f5a6164ad426 (patch) | |
tree | 45d5a9d291e0caf71bb3b1470bf00c11e8a07457 /Build/source/texk/web2c/cpascal.h | |
parent | 2df1a0de2950ebd5697b994c1bbf7c655ac271c9 (diff) |
Avoid compiler warnings on 64Bit systems
git-svn-id: svn://tug.org/texlive/trunk@18349 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cpascal.h')
-rw-r--r-- | Build/source/texk/web2c/cpascal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/cpascal.h b/Build/source/texk/web2c/cpascal.h index c98a1b2c529..a4b5976d295 100644 --- a/Build/source/texk/web2c/cpascal.h +++ b/Build/source/texk/web2c/cpascal.h @@ -167,8 +167,8 @@ typedef unsigned char *pointertobyte; Actually allocate one more than requests, so we can index the last entry, as Pascal wants to do. */ #define BIBXRETALLOCNOSET(array_name, array_var, type, size_var, new_size) \ - fprintf (logfile, "Reallocated %s (elt_size=%d) to %ld items from %ld.\n", \ - array_name, (int) sizeof (type), new_size, size_var); \ + fprintf (logfile, "Reallocated %s (elt_size=%ld) to %ld items from %ld.\n", \ + array_name, (long) sizeof (type), (long) new_size, (long) size_var); \ XRETALLOC (array_var, new_size + 1, type) /* Same as above, but also increase SIZE_VAR when no more arrays with the same size parameter will be resized. */ @@ -178,8 +178,8 @@ typedef unsigned char *pointertobyte; } while (0) /* Same as above, but for the pseudo-TYPE ASCII_code[LENGTH+1]. */ #define BIBXRETALLOCSTRING(array_name, array_var, length, size_var, new_size) \ - fprintf (logfile, "Reallocated %s (elt_size=%d) to %ld items from %ld.\n", \ - array_name, (int) (length + 1), new_size, size_var); \ + fprintf (logfile, "Reallocated %s (elt_size=%ld) to %ld items from %ld.\n", \ + array_name, (long) (length + 1), (long) new_size, (long) size_var); \ XRETALLOC (array_var, (new_size) * (length + 1), ASCIIcode) /* Need precisely int for getopt, etc. */ |