Commit 8b52f983 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Fixed minor printf bug.

Detail:
  %#x shows a leading 0x (and %#X leads with 0X) only when the value
    to be displayed is NOT zero.
Admin:
  Cross-verified against: C89 standard; C9X standard; gcc 2.95 implementation.
  Built.

Version 5.14. Tagged as 'RISC_OSLib-5_14'
parent 8e631acb
......@@ -8,11 +8,11 @@
GBLS Module_FullVersion
GBLS Module_ApplicationDate2
GBLS Module_ApplicationDate4
Module_MajorVersion SETS "5.13"
Module_Version SETA 513
Module_MajorVersion SETS "5.14"
Module_Version SETA 514
Module_MinorVersion SETS ""
Module_Date SETS "17 Aug 2000"
Module_ApplicationDate2 SETS "17-Aug-00"
Module_ApplicationDate4 SETS "17-Aug-2000"
Module_FullVersion SETS "5.13"
Module_Date SETS "14 Sep 2000"
Module_ApplicationDate2 SETS "14-Sep-00"
Module_ApplicationDate4 SETS "14-Sep-2000"
Module_FullVersion SETS "5.14"
END
/* (5.13)
/* (5.14)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 5.13
#define Module_MajorVersion_CMHG 5.14
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 17 Aug 2000
#define Module_Date_CMHG 14 Sep 2000
#define Module_MajorVersion "5.13"
#define Module_Version 513
#define Module_MajorVersion "5.14"
#define Module_Version 514
#define Module_MinorVersion ""
#define Module_Date "17 Aug 2000"
#define Module_Date "14 Sep 2000"
#define Module_ApplicationDate2 "17-Aug-00"
#define Module_ApplicationDate4 "17-Aug-2000"
#define Module_ApplicationDate2 "14-Sep-00"
#define Module_ApplicationDate4 "14-Sep-2000"
#define Module_FullVersion "5.13"
#define Module_FullVersion "5.14"
......@@ -365,14 +365,14 @@ int __vfprintf(FILE *p, const char *fmt, va_list args,
case 'X': v = va_arg(args, int);
if (flags & _SHORTSPEC) v = (unsigned short)v;
hextab = "0123456789ABCDEF";
prefix = (flags&_VARIANT) ? "0X" : "";
prefix = ((flags&_VARIANT) != 0 && v != 0)? "0X" : "";
if (flags & _PRECGIVEN) flags &= ~_PADZERO;
break;
case 'x': v = va_arg(args, int);
if (flags & _SHORTSPEC) v = (unsigned short)v;
hextab = "0123456789abcdef";
prefix = (flags&_VARIANT) ? "0x" : "";
prefix = ((flags&_VARIANT) != 0 && v != 0)? "0X" : "";
if (flags & _PRECGIVEN) flags &= ~_PADZERO;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment