Avoid compilation warnings in MS-Windows build

* src/pdumper.c (dump_cold_bignum):
* src/emacs.c(load_pdump) [WINDOWSNT]: Avoid compiler warnings
due to 64-bit vs 32-bit data type mismatches.
This commit is contained in:
Andy Moreton 2019-01-16 17:44:10 +00:00 committed by Eli Zaretskii
parent ebd174e218
commit 8bf51c380a
2 changed files with 2 additions and 2 deletions

View file

@ -749,7 +749,7 @@ load_pdump (int argc, char **argv)
/* Remove the .exe extension if present. */
argv0_len = strlen (argv[0]);
if (argv0_len >= 4 && c_strcasecmp (argv[0] + argv0_len - 4, ".exe") == 0)
sprintf (dump_file, "%.*s%s", argv0_len - 4, argv[0], suffix);
sprintf (dump_file, "%.*s%s", (int)(argv0_len - 4), argv[0], suffix);
else
#endif
sprintf (dump_file, "%s%s", argv[0], suffix);

View file

@ -3442,7 +3442,7 @@ dump_cold_bignum (struct dump_context *ctx, Lisp_Object object)
dump_off_to_lisp ((mpz_sgn (bignum->value) < 0
? -nlimbs : nlimbs)));
Fputhash (object, descriptor, ctx->bignum_data);
for (size_t i = 0; i < nlimbs; ++i)
for (mp_size_t i = 0; i < nlimbs; ++i)
{
mp_limb_t limb = mpz_getlimbn (bignum->value, i);
dump_write (ctx, &limb, sizeof (limb));