mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-24 16:27:42 +01:00
Forgot again the __ after __typeof
This commit is contained in:
parent
ae0112e93c
commit
8931f35eb8
@ -870,7 +870,7 @@ EFI_STATUS FixDataMatchingTag( CHAR8* buffer, CONST CHAR8* tag, UINT32* lenPtr)
|
||||
buffer[start + stop] = '\0';
|
||||
*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;
|
||||
}
|
||||
|
||||
|
@ -4730,7 +4730,7 @@ static unsigned readChunk_iCCP(LodePNGInfo* info, const LodePNGDecompressSetting
|
||||
length, zlibsettings);
|
||||
if(!error) {
|
||||
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
|
||||
info->iccp_profile = (unsigned char*)lodepng_malloc(decoded.size);
|
||||
if(info->iccp_profile) {
|
||||
|
Loading…
Reference in New Issue
Block a user