Fixed a lot of issues reported by cppcheck 1.78

This commit is contained in:
heckflosse
2017-04-08 22:41:46 +02:00
parent 73e14702dd
commit 6e55f6bab5
41 changed files with 226 additions and 254 deletions

View File

@@ -864,7 +864,7 @@ cmsHPROFILE rtengine::ICCStore::makeStdGammaProfile(cmsHPROFILE iprof)
} tags[tag_count];
const uint32_t gamma = 0x239;
int gamma_size =(gamma == 0 || gamma == 256) ? 12 : 14;
int gamma_size = 14;
int data_size =(gamma_size + 3) & ~3;
for (uint32_t i = 0; i < tag_count; i++) {