diff options
author | Frank Warmerdam <warmerdam@pobox.com> | 2000-01-28 21:09:02 +0000 |
---|---|---|
committer | Frank Warmerdam <warmerdam@pobox.com> | 2000-01-28 21:09:02 +0000 |
commit | cb60accd68295ce3efddb504892973e3ec3c6705 (patch) | |
tree | 0682232b8c87dfdd1c3ee40658bdcce047e06545 /libtiff | |
parent | 11242afaf28b1c4c909abf0f95cc15d73c6ef16f (diff) | |
download | libtiff-git-cb60accd68295ce3efddb504892973e3ec3c6705.tar.gz |
make toff_t unsigned
Diffstat (limited to 'libtiff')
-rw-r--r-- | libtiff/tiffio.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libtiff/tiffio.h b/libtiff/tiffio.h index 4a8ecaaf..9b142c71 100644 --- a/libtiff/tiffio.h +++ b/libtiff/tiffio.h @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tiffio.h,v 1.4 2000-01-28 15:09:12 warmerda Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tiffio.h,v 1.5 2000-01-28 21:09:02 warmerda Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -63,7 +63,8 @@ typedef struct tiff TIFF; * NB: tsize_t is int32 and not uint32 because some functions * return -1. * NB: toff_t is not off_t for many reasons; TIFFs max out at - * 32-bit file offsets being the most important + * 32-bit file offsets being the most important, and to ensure + * that it is unsigned, rather than signed. */ typedef uint32 ttag_t; /* directory tag */ typedef uint16 tdir_t; /* directory index */ @@ -72,7 +73,7 @@ typedef uint32 tstrip_t; /* strip number */ typedef uint32 ttile_t; /* tile number */ typedef int32 tsize_t; /* i/o size in bytes */ typedef void* tdata_t; /* image data ref */ -typedef int32 toff_t; /* file offset */ +typedef uint32 toff_t; /* file offset */ #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32)) #define __WIN32__ |