mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
more strict type conversion in cpp
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
7999d10b9c
commit
a2534ee4f8
@ -301,17 +301,17 @@ SSDT_TABLE *generate_pss_ssdt(UINTN Number)
|
||||
j = i << 8;
|
||||
p_states[p_states_count].Frequency = (UINT32)(100 * i);
|
||||
} else {
|
||||
p_states[p_states_count].Frequency = (UINT32)(DivU64x32(MultU64x32(gCPUStructure.FSBFrequency, i), Mega));
|
||||
p_states[p_states_count].Frequency = (UINT32)(DivU64x32(MultU64x32(gCPUStructure.FSBFrequency, (UINT32)i), Mega));
|
||||
}
|
||||
p_states[p_states_count].Control.Control = (UINT16)j;
|
||||
p_states[p_states_count].CID = j;
|
||||
p_states[p_states_count].CID = (UINT32)j;
|
||||
|
||||
if (!p_states_count && gSettings.DoubleFirstState) {
|
||||
//double first state
|
||||
p_states_count++;
|
||||
p_states[p_states_count].Control.Control = (UINT16)j;
|
||||
p_states[p_states_count].CID = j;
|
||||
p_states[p_states_count].Frequency = (UINT32)(DivU64x32(MultU64x32(gCPUStructure.FSBFrequency, i), Mega)) - 1;
|
||||
p_states[p_states_count].CID = (UINT32)j;
|
||||
p_states[p_states_count].Frequency = (UINT32)(DivU64x32(MultU64x32(gCPUStructure.FSBFrequency, (UINT32)i), Mega)) - 1;
|
||||
}
|
||||
p_states_count++;
|
||||
}
|
||||
|
@ -1054,7 +1054,8 @@ unsigned compress(XArray<unsigned char>& out, const XArray<unsigned char>& in,
|
||||
#endif /* LODEPNG_COMPILE_ZLIB */
|
||||
} /* namespace lodepng */
|
||||
#endif /*LODEPNG_COMPILE_CPP*/
|
||||
|
||||
unsigned eglodepng_encode(unsigned char** out, size_t* outsize, const unsigned char* image, size_t w, size_t h);
|
||||
unsigned eglodepng_decode(unsigned char** out, size_t* w, size_t* h, const unsigned char* in, size_t insize);
|
||||
/*
|
||||
TODO:
|
||||
[.] test if there are no memory leaks or security exploits - done a lot but needs to be checked often
|
||||
|
Loading…
Reference in New Issue
Block a user