fix warning (as error on mac) around max file offset
git-svn-id: http://skia.googlecode.com/svn/trunk@8070 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
d1c7f71ee3
commit
46ee9c6a92
@ -128,9 +128,9 @@ int32_t SkPDFCatalog::emitXrefTable(SkWStream* stream, bool firstPage) {
|
||||
first++;
|
||||
}
|
||||
for (int i = first; i <= last; i++) {
|
||||
// For 32 bits platforms, the maximum offset has to fit within off_t which is a 32 bits
|
||||
// signed integer on these platforms. On other platforms, we can use the actual maximum.
|
||||
SkDEBUGCODE(static const off_t kMaxOff = (sizeof(off_t) > 4) ? 10000000000 : 2147483647;)
|
||||
// For 32 bits platforms, the maximum offset has to fit within off_t
|
||||
// which is a 32 bits signed integer on these platforms.
|
||||
SkDEBUGCODE(static const off_t kMaxOff = SK_MaxS32;)
|
||||
SkASSERT(fCatalog[i].fFileOffset > 0);
|
||||
SkASSERT(fCatalog[i].fFileOffset < kMaxOff);
|
||||
stream->writeBigDecAsText(fCatalog[i].fFileOffset, 10);
|
||||
|
Loading…
Reference in New Issue
Block a user