Fix some warnings.

This commit is contained in:
Michael R Sweet 2023-12-03 19:23:36 -05:00
parent 41146adbdf
commit c6f17cc20f
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244
3 changed files with 7 additions and 4 deletions

4
.gitignore vendored
View File

@ -6,8 +6,12 @@
/.vs /.vs
/afl-output /afl-output
/autom4te.cache /autom4te.cache
/config.log
/config.status
/doc/pdfio.epub /doc/pdfio.epub
/Makefile
/packages /packages
/pdfio.pc
/pdfio.xcodeproj/xcshareddata /pdfio.xcodeproj/xcshareddata
/pdfio-*.tar.gz* /pdfio-*.tar.gz*
/pdfio-*.zip* /pdfio-*.zip*

View File

@ -1393,8 +1393,7 @@ pdfioFileCreateFontObjFromFile(
start, // Start character start, // Start character
num_cmap; // Number of CMap entries num_cmap; // Number of CMap entries
const int *cmap; // CMap entries const int *cmap; // CMap entries
int glyph, // Current glyph int min_glyph, // First glyph
min_glyph, // First glyph
max_glyph; // Last glyph max_glyph; // Last glyph
unsigned short glyphs[65536]; // Glyph to Unicode mapping unsigned short glyphs[65536]; // Glyph to Unicode mapping
unsigned char *bufptr, // Pointer into buffer unsigned char *bufptr, // Pointer into buffer

View File

@ -1925,12 +1925,12 @@ load_xref(
} }
} }
} }
else if (!strncmp(line, "xref", 4) && !line[4] || isspace(line[4] & 255)) else if (!strncmp(line, "xref", 4) && (!line[4] || isspace(line[4] & 255)))
{ {
// Read the xref tables // Read the xref tables
while (_pdfioFileGets(pdf, line, sizeof(line))) while (_pdfioFileGets(pdf, line, sizeof(line)))
{ {
if (!strncmp(line, "trailer", 7) && !line[7] || isspace(line[7] & 255)) if (!strncmp(line, "trailer", 7) && (!line[7] || isspace(line[7] & 255)))
break; break;
else if (!line[0]) else if (!line[0])
continue; continue;