svn rev #21911: trunk/src/lib/krb5/unicode/ure/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri Feb 6 14:46:41 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21911
Commit By: ghudson
Log Message:
Fix whitespace on previous commit to ure.c. Correct two other cases
where %lX was used with a krb5_ui_4 type argument without a cast to
unsigned long.
Changed Files:
U trunk/src/lib/krb5/unicode/ure/ure.c
Modified: trunk/src/lib/krb5/unicode/ure/ure.c
===================================================================
--- trunk/src/lib/krb5/unicode/ure/ure.c 2009-02-06 19:18:20 UTC (rev 21910)
+++ trunk/src/lib/krb5/unicode/ure/ure.c 2009-02-06 19:46:40 UTC (rev 21911)
@@ -1878,7 +1878,8 @@
l = (ucs2_t) (((rp->min_code - 0x10000) & 1023) + 0xdc00);
fprintf(out, "\\x%04hX\\x%04hX", h, l);
} else
- fprintf(out, "\\x%04lX", rp->min_code & 0xffff);
+ fprintf(out, "\\x%04lX",
+ (unsigned long)(rp->min_code & 0xffff));
if (rp->max_code != rp->min_code) {
putc('-', out);
if (rp->max_code >= 0x10000 &&
@@ -1887,7 +1888,8 @@
l = (ucs2_t) (((rp->max_code - 0x10000) & 1023) + 0xdc00);
fprintf(out, "\\x%04hX\\x%04hX", h, l);
} else
- fprintf(out, "\\x%04lX", rp->max_code & 0xffff);
+ fprintf(out, "\\x%04lX",
+ (unsigned long)(rp->max_code & 0xffff));
}
}
if (sym->sym.ccl.ranges_used > 0)
@@ -1918,8 +1920,8 @@
l = (ucs2_t) (((sym->sym.chr - 0x10000) & 1023) + 0xdc00);
fprintf(out, "\\x%04hX\\x%04hX ", h, l);
} else
- fprintf(out, "\\x%04lX ",
- (unsigned long)(sym->sym.chr & 0xffff));
+ fprintf(out, "\\x%04lX ",
+ (unsigned long)(sym->sym.chr & 0xffff));
break;
case _URE_ANY_CHAR:
fprintf(out, "<any> ");
More information about the cvs-krb5
mailing list