Skip to content

Commit

Permalink
Fix some warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Dec 4, 2023
1 parent 41146ad commit c6f17cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
3 changes: 1 addition & 2 deletions pdfio-content.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pdfio-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c6f17cc

Please sign in to comment.