mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-25 16:37: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';
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user