[DVIPDFMx] unsigned int
Karl Berry
karl at freefriends.org
Fri Jun 11 09:57:32 KST 2010
Here is the simple change Peter made to avoid use of %h, relative to
the pdfobj.c in DPX current CVS. Ok?
I was rather distressed to discover that he has made numerous other
changes, related mostly to portability and warnings, but also one bug
fix, it seems. Was all that ever discussed / sent back to you?
Thanks,
Karl
--- pdfobj.c.~1.74.~ 2010-05-30 09:41:35.000000000 +0200
+++ pdfobj.c 2010-06-11 02:54:50.000000000 +0200
@@ -2957,6 +2957,6 @@ pdf_open (const char *ident, FILE *file)
if (new_version) {
- unsigned short minor;
+ unsigned int minor;
if (!PDF_OBJ_NAMETYPE(new_version) ||
- sscanf(pdf_name_value(new_version), "1.%hu", &minor) != 1) {
+ sscanf(pdf_name_value(new_version), "1.%u", &minor) != 1) {
pdf_release_obj(new_version);
@@ -3000,3 +3000,3 @@ check_for_pdf_version (FILE *file)
{
- unsigned short minor;
+ unsigned int minor;
@@ -3005,3 +3005,3 @@ check_for_pdf_version (FILE *file)
return (ungetc(fgetc(file), file) == '%' &&
- fscanf(file, "%%PDF-1.%hu", &minor) == 1) ? minor : -1;
+ fscanf(file, "%%PDF-1.%u", &minor) == 1) ? minor : -1;
}
More information about the dvipdfmx
mailing list