Forgot again the __ after __typeof

This commit is contained in:
jief 2020-03-11 18:36:08 +03:00
parent ae0112e93c
commit 8931f35eb8
2 changed files with 2 additions and 2 deletions

View File

@ -870,7 +870,7 @@ EFI_STATUS FixDataMatchingTag( CHAR8* buffer, CONST CHAR8* tag, UINT32* lenPtr)
buffer[start + stop] = '\0'; buffer[start + stop] = '\0';
*lenPtr = start + length; *lenPtr = start + length;
if (*lenPtr == (__typeof(*lenPtr))-1) { // Why is this test. -1 is UINTN_MAX. if (*lenPtr == (__typeof__(*lenPtr))-1) { // Why is this test. -1 is UINTN_MAX.
return EFI_UNSUPPORTED; return EFI_UNSUPPORTED;
} }

View File

@ -4730,7 +4730,7 @@ static unsigned readChunk_iCCP(LodePNGInfo* info, const LodePNGDecompressSetting
length, zlibsettings); length, zlibsettings);
if(!error) { if(!error) {
if(decoded.size) { if(decoded.size) {
info->iccp_profile_size = (__typeof(info->iccp_profile_size))decoded.size; // Unsafe cast info->iccp_profile_size = (__typeof__(info->iccp_profile_size))decoded.size; // Unsafe cast
if ( info->iccp_profile_size != decoded.size ) panic("info->iccp_profile_size != decoded.size"); // Check the cast if ( info->iccp_profile_size != decoded.size ) panic("info->iccp_profile_size != decoded.size"); // Check the cast
info->iccp_profile = (unsigned char*)lodepng_malloc(decoded.size); info->iccp_profile = (unsigned char*)lodepng_malloc(decoded.size);
if(info->iccp_profile) { if(info->iccp_profile) {