[MLton-commit] r4595
Stephen Weeks
MLton@mlton.org
Wed, 24 May 2006 22:42:36 -0700
Eliminated printf warnings about "int format, C_Int_t arg" using cast
as suggested by Matthew.
----------------------------------------------------------------------
U mlton/branches/on-20050822-x86_64-branch/runtime/basis/Real/gdtoa.c
----------------------------------------------------------------------
Modified: mlton/branches/on-20050822-x86_64-branch/runtime/basis/Real/gdtoa.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/basis/Real/gdtoa.c 2006-05-25 04:58:16 UTC (rev 4594)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/basis/Real/gdtoa.c 2006-05-25 05:42:35 UTC (rev 4595)
@@ -35,7 +35,7 @@
result = gdtoa (&fpi, ex, bits, &i, mode, ndig, (int*)decpt, NULL);
if (DEBUG)
fprintf (stderr, "%s = gdtoa (%g, %d, %d) decpt = %d\n",
- result, (double)f, mode, ndig, *((int*)decpt));
+ result, (double)f, (int)mode, (int)ndig, *((int*)decpt));
return (C_String_t)result;
}
@@ -69,6 +69,6 @@
result = gdtoa (&fpi, ex, bits, &i, mode, ndig, (int*)decpt, NULL);
if (DEBUG)
fprintf (stderr, "%s = gdtoa (%g, %d, %d) decpt = %d\n",
- result, d, mode, ndig, *((int*)decpt));
+ result, d, (int)mode, (int)ndig, *((int*)decpt));
return (C_String_t)result;
}