From f3c259c397808914fd2b4c2e4662766d45b60b64 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 6 Feb 2009 19:18:20 +0000 Subject: [PATCH] Pass the correct width argument to fprintf for URE_CHAR in ure_write_dfa. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21910 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/unicode/ure/ure.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/unicode/ure/ure.c b/src/lib/krb5/unicode/ure/ure.c index c8a202964..5630399f5 100644 --- a/src/lib/krb5/unicode/ure/ure.c +++ b/src/lib/krb5/unicode/ure/ure.c @@ -1918,7 +1918,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 ", sym->sym.chr & 0xffff); + fprintf(out, "\\x%04lX ", + (unsigned long)(sym->sym.chr & 0xffff)); break; case _URE_ANY_CHAR: fprintf(out, " "); -- 2.26.2