mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-12-27 05:48:20 +01:00
Fix some warnings.
This commit is contained in:
parent
41146adbdf
commit
c6f17cc20f
4
.gitignore
vendored
4
.gitignore
vendored
@ -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*
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user