Check-in Number:
|
9 | |
Date: |
2007-Mar-07 19:16:40 (local)
2007-Mar-07 18:16:40 (UTC) |
User: | rse |
Branch: | |
Comment: |
fix %X format specifier: the characters in the hex number have to be uppercase, too
|
Tickets: |
|
Inspections: |
|
Files: |
|
Modified: javascript/sprintf.js
===================================================================
--- javascript/sprintf.js 2007-02-15 21:36:57 UTC (rev 8)
+++ javascript/sprintf.js 2007-03-07 18:16:40 UTC (rev 9)
@@ -150,7 +150,7 @@
subst = arguments[access];
if (typeof subst != "number")
subst = 0;
- subst = subst.toString(16).toLowerCase();
+ subst = subst.toString(16).toUpperCase();
if (pFlags.indexOf('#') >= 0)
prefix = "0X";
break;