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
/afl-output
/autom4te.cache
/config.log
/config.status
/doc/pdfio.epub
/Makefile
/packages
/pdfio.pc
/pdfio.xcodeproj/xcshareddata
/pdfio-*.tar.gz*
/pdfio-*.zip*

View File

@ -1393,8 +1393,7 @@ pdfioFileCreateFontObjFromFile(
start, // Start character
num_cmap; // Number of CMap entries
const int *cmap; // CMap entries
int glyph, // Current glyph
min_glyph, // First glyph
int min_glyph, // First glyph
max_glyph; // Last glyph
unsigned short glyphs[65536]; // Glyph to Unicode mapping
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
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;
else if (!line[0])
continue;