Mercurial > hg > xemacs-beta
diff src/doprnt.c @ 1995:4e6a63799f08
[xemacs-hg @ 2004-04-07 03:48:58 by james]
Fix various ICC warnings and compilation errors.
author | james |
---|---|
date | Wed, 07 Apr 2004 03:49:00 +0000 |
parents | 9c872f33ecbe |
children | 5753220a0f80 |
line wrap: on
line diff
--- a/src/doprnt.c Wed Apr 07 02:44:08 2004 +0000 +++ b/src/doprnt.c Wed Apr 07 03:49:00 2004 +0000 @@ -728,25 +728,29 @@ #ifdef HAVE_BIGNUM if (BIGNUMP (arg.obj)) { - char *text_to_print = - bignum_to_string (XBIGNUM_DATA (arg.obj), - ch == 'n' ? 10 : - (ch == 'p' ? 8 : 16)); - doprnt_2 (stream, text_to_print, strlen (text_to_print), + Ibyte *text_to_print = + (Ibyte *) bignum_to_string (XBIGNUM_DATA (arg.obj), + ch == 'n' ? 10 : + (ch == 'p' ? 8 : 16)); + doprnt_2 (stream, text_to_print, + strlen ((const char *) text_to_print), spec->minwidth, -1, spec->minus_flag, spec->zero_flag); + xfree (text_to_print, Ibyte *); } #endif #ifdef HAVE_RATIO if (RATIOP (arg.obj)) { - char *text_to_print = - ratio_to_string (XRATIO_DATA (arg.obj), - ch == 'n' ? 10 : - (ch == 'p' ? 8 : 16)); - doprnt_2 (stream, text_to_print, strlen (text_to_print), + Ibyte *text_to_print = + (Ibyte *) ratio_to_string (XRATIO_DATA (arg.obj), + ch == 'n' ? 10 : + (ch == 'p' ? 8 : 16)); + doprnt_2 (stream, text_to_print, + strlen ((const char *) text_to_print), spec->minwidth, -1, spec->minus_flag, spec->zero_flag); + xfree (text_to_print, Ibyte *); } #endif } @@ -754,10 +758,12 @@ #ifdef HAVE_BIGFLOAT else if (strchr (bigfloat_converters, ch)) { - char *text_to_print = - bigfloat_to_string (XBIGFLOAT_DATA (arg.obj), 10); - doprnt_2 (stream, text_to_print, strlen (text_to_print), + Ibyte *text_to_print = + (Ibyte *) bigfloat_to_string (XBIGFLOAT_DATA (arg.obj), 10); + doprnt_2 (stream, text_to_print, + strlen ((const char *) text_to_print), spec->minwidth, -1, spec->minus_flag, spec->zero_flag); + xfree (text_to_print, Ibyte *); } #endif /* HAVE_BIGFLOAT */ else