From 201be8c99935327412cd62e00ebd864abb4661ea Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 6 Feb 2009 19:46:40 +0000 Subject: [PATCH] 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21911 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/unicode/ure/ure.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/krb5/unicode/ure/ure.c b/src/lib/krb5/unicode/ure/ure.c index 5630399f5..22ec31989 100644 --- a/src/lib/krb5/unicode/ure/ure.c +++ b/src/lib/krb5/unicode/ure/ure.c @@ -1878,7 +1878,8 @@ ure_write_dfa(ure_dfa_t dfa, FILE *out) 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 @@ ure_write_dfa(ure_dfa_t dfa, FILE *out) 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 @@ ure_write_dfa(ure_dfa_t dfa, FILE *out) 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, " "); -- 2.26.2