From 41f1a85a54be350ef92496a821cbe0cf00851329 Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Thu, 7 Sep 2023 10:10:02 +0200 Subject: [PATCH] Fix minor mispellings in comments Thanks to @GerHobbelt for reporting that --- plugins/fast_float/src/fast_float_15mats.c | 4 ++-- src/cmscgats.c | 4 ++-- src/cmserr.c | 4 ++-- src/cmsgmt.c | 2 +- src/cmstypes.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/fast_float/src/fast_float_15mats.c b/plugins/fast_float/src/fast_float_15mats.c index 142da1266..caae76cb1 100644 --- a/plugins/fast_float/src/fast_float_15mats.c +++ b/plugins/fast_float/src/fast_float_15mats.c @@ -19,11 +19,11 @@ // //--------------------------------------------------------------------------------- -// Optimization for matrix-shaper in 15 bits. Numbers are operated in 1.15 usigned, +// Optimization for matrix-shaper in 15 bits. Numbers are operated in 1.15 unsigned, #include "fast_float_internal.h" -// An storage capable to keep 1.15 signed and some extra precission. +// An storage capable to keep 1.15 signed and some extra precision. // Actually I use 32 bits integer (signed) typedef cmsInt32Number cmsS1Fixed15Number; diff --git a/src/cmscgats.c b/src/cmscgats.c index ee53a9565..499c9064b 100644 --- a/src/cmscgats.c +++ b/src/cmscgats.c @@ -426,7 +426,7 @@ void StringCat(string* s, const char* c) static cmsBool isseparator(int c) { - return (c == ' ') || (c == '\t') ; + return (c == ' ') || (c == '\t'); } // Checks whatever c is a valid identifier char @@ -943,7 +943,7 @@ void InSymbol(cmsIT8* it8) // Next line case '\r': NextCh(it8); - if (it8 ->ch == '\n') + if (it8->ch == '\n') NextCh(it8); it8->sy = SEOLN; it8->lineno++; diff --git a/src/cmserr.c b/src/cmserr.c index ccb40f926..3ef6c6feb 100644 --- a/src/cmserr.c +++ b/src/cmserr.c @@ -72,7 +72,7 @@ long int CMSEXPORT cmsfilelength(FILE* f) // // This is the interface to low-level memory management routines. By default a simple // wrapping to malloc/free/realloc is provided, although there is a limit on the max -// amount of memoy that can be reclaimed. This is mostly as a safety feature to prevent +// amount of memory that can be reclaimed. This is mostly as a safety feature to prevent // bogus or evil code to allocate huge blocks that otherwise lcms would never need. #define MAX_MEMORY_FOR_ALLOC ((cmsUInt32Number)(1024U*1024U*512U)) @@ -234,7 +234,7 @@ cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase *Data) // NULL forces to reset to defaults. In this special case, the defaults are stored in the context structure. // Remaining plug-ins does NOT have any copy in the context structure, but this is somehow special as the - // context internal data should be malloce'd by using those functions. + // context internal data should be malloc'ed by using those functions. if (Data == NULL) { struct _cmsContext_struct* ctx = ( struct _cmsContext_struct*) ContextID; diff --git a/src/cmsgmt.c b/src/cmsgmt.c index 3ad6269c2..a27a3a3b4 100644 --- a/src/cmsgmt.c +++ b/src/cmsgmt.c @@ -596,7 +596,7 @@ cmsBool CMSEXPORT cmsDesaturateLab(cmsCIELab* Lab, // Actually, doing that "well" is quite hard, since every component may behave completely different. // Since the true point of this function is to detect suitable optimizations, I am imposing some requirements // that simplifies things: only RGB, and only profiles that can got in both directions. -// The algorithm obtains Y from a syntetical gray R=G=B. Then least squares fitting is used to estimate gamma. +// The algorithm obtains Y from a synthetical gray R=G=B. Then least squares fitting is used to estimate gamma. // For gamma close to 1.0, RGB is linear. On profiles not supported, -1 is returned. cmsFloat64Number CMSEXPORT cmsDetectRGBProfileGamma(cmsHPROFILE hProfile, cmsFloat64Number threshold) diff --git a/src/cmstypes.c b/src/cmstypes.c index 332d5116f..1b114a1cf 100644 --- a/src/cmstypes.c +++ b/src/cmstypes.c @@ -4450,7 +4450,7 @@ void *Type_MPEclut_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, clut = (_cmsStageCLutData*) mpe ->Data; for (i=0; i < clut ->nEntries; i++) { - if (!_cmsReadFloat32Number(io, &clut->Tab.TFloat[i])) goto Error; + if (!_cmsReadFloat32Number(io, &clut->Tab.TFloat[i])) goto Error; } *nItems = 1;