From a6fa499e200269e6abdf511807c13d224e18f182 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 29 Feb 2020 01:17:17 +0100 Subject: [PATCH] typo fixes in code comments --- libtiff/tif_dir.c | 4 ++-- libtiff/tif_dirwrite.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libtiff/tif_dir.c b/libtiff/tif_dir.c index e59f1633..47927a84 100644 --- a/libtiff/tif_dir.c +++ b/libtiff/tif_dir.c @@ -710,7 +710,7 @@ _TIFFVSetField(TIFF* tif, uint32 tag, va_list ap) double v2 = va_arg(ap, double); _TIFFmemcpy(val, &v2, tv_size); } else { - /*-- default schould be tv_size == 4 */ + /*-- default should be tv_size == 4 */ float v3 = (float)va_arg(ap, double); _TIFFmemcpy(val, &v3, tv_size); /*-- ToDo: After Testing, this should be removed and tv_size==4 should be set as default. */ @@ -1229,7 +1229,7 @@ _TIFFVGetField(TIFF* tif, uint32 tag, va_list ap) *va_arg(ap, double*) = *(double *)val; ret_val = 1; } else { - /*-- default schould be tv_size == 4 */ + /*-- default should be tv_size == 4 */ *va_arg(ap, float*) = *(float *)val; ret_val = 1; /*-- ToDo: After Testing, this should be removed and tv_size==4 should be set as default. */ diff --git a/libtiff/tif_dirwrite.c b/libtiff/tif_dirwrite.c index 97761106..410c8adb 100644 --- a/libtiff/tif_dirwrite.c +++ b/libtiff/tif_dirwrite.c @@ -819,7 +819,7 @@ TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff) if (!TIFFWriteDirectoryTagRationalDoubleArray(tif,&ndir,dir,tag,count,tif->tif_dir.td_customValues[m].value)) goto bad; } else { - /*-- default schould be tv_size == 4 */ + /*-- default should be tv_size == 4 */ if (!TIFFWriteDirectoryTagRationalArray(tif,&ndir,dir,tag,count,tif->tif_dir.td_customValues[m].value)) goto bad; /*-- ToDo: After Testing, this should be removed and tv_size==4 should be set as default. */ @@ -838,7 +838,7 @@ TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff) if (!TIFFWriteDirectoryTagSrationalDoubleArray(tif,&ndir,dir,tag,count,tif->tif_dir.td_customValues[m].value)) goto bad; } else { - /*-- default schould be tv_size == 4 */ + /*-- default should be tv_size == 4 */ if (!TIFFWriteDirectoryTagSrationalArray(tif,&ndir,dir,tag,count,tif->tif_dir.td_customValues[m].value)) goto bad; /*-- ToDo: After Testing, this should be removed and tv_size==4 should be set as default. */ @@ -2556,7 +2556,7 @@ TIFFWriteDirectoryTagCheckedSrationalArray(TIFF* tif, uint32* ndir, TIFFDirEntry return(o); } -/*-- Rational2Double: additonal write functions for double arrays */ +/*-- Rational2Double: additional write functions for double arrays */ static int TIFFWriteDirectoryTagCheckedRationalDoubleArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, double* value) {