From 57946eb3bef16e1f358c80b8f084834dbc126214 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Mon, 6 Aug 2001 16:58:27 +0000 Subject: [PATCH] Adding missing TSRM macros. Kill signed/unsigned compiler warning --- ext/exif/exif.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 01aacedf15..e3e8e7cedf 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -521,7 +521,7 @@ static void ExtractThumbnail(ImageInfoType *ImageInfo, char *OffsetBase, unsigne return; } else { /* Check to make sure we are not going to go past the ExifLength */ - if (ImageInfo->ThumbnailOffset + ImageInfo->ThumbnailSize > ExifLength) { + if ((unsigned)(ImageInfo->ThumbnailOffset + ImageInfo->ThumbnailSize) > ExifLength) { php_error(E_WARNING,"Thumbnail goes beyond exif header boundary"); return; } else { @@ -1038,7 +1038,7 @@ void DiscardData(Section_t *Sections, int *SectionsRead) */ int ReadJpegFile(ImageInfoType *ImageInfo, Section_t *Sections, int *SectionsRead, char *FileName, - int ReadAll, char *LastExifRefd) + int ReadAll, char *LastExifRefd TSRMLS_DC) { FILE *infile; int ret; @@ -1097,7 +1097,7 @@ int ReadJpegFile(ImageInfoType *ImageInfo, Section_t *Sections, /* {{{ php_read_jpeg_exif */ -int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll) +int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll TSRMLS_DC) { Section_t Sections[20]; int SectionsRead; @@ -1107,7 +1107,7 @@ int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll) ImageInfo->MotorolaOrder = 0; - ret = ReadJpegFile(ImageInfo, Sections, &SectionsRead, FileName, ReadAll, LastExifRefd); + ret = ReadJpegFile(ImageInfo, Sections, &SectionsRead, FileName, ReadAll, LastExifRefd TSRMLS_CC); /* * Thought this might pick out the embedded thumbnail, but it doesn't work. -RL for (i=0;i