Codechange: rename byte to uint8_t (#12308)

This commit is contained in:
Patric Stout
2024-03-16 23:59:32 +01:00
committed by GitHub
parent bd7120bae4
commit a3cfd23cf9
355 changed files with 1654 additions and 1656 deletions

View File

@@ -254,10 +254,10 @@ void UpdateNewGRFConfigPalette(int32_t)
*/
size_t GRFGetSizeOfDataSection(FILE *f)
{
extern const byte _grf_cont_v2_sig[];
extern const uint8_t _grf_cont_v2_sig[];
static const uint header_len = 14;
byte data[header_len];
uint8_t data[header_len];
if (fread(data, 1, header_len, f) == header_len) {
if (data[0] == 0 && data[1] == 0 && MemCmpT(data + 2, _grf_cont_v2_sig, 8) == 0) {
/* Valid container version 2, get data section size. */