Fix whitespace on previous commit to ure.c. Correct two other cases
authorGreg Hudson <ghudson@mit.edu>
Fri, 6 Feb 2009 19:46:40 +0000 (19:46 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 6 Feb 2009 19:46:40 +0000 (19:46 +0000)
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

index 5630399f597b87544dee2a698c1c766b3ed55a11..22ec3198994584957334934316c88fbc0342322a 100644 (file)
@@ -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, "<any> ");