Silence a couple more MSVC warnings
This commit is contained in:
parent
6de861a75c
commit
88b9eb1560
@ -56,14 +56,19 @@ static float msvc_strtof(const char *str, char **end)
|
||||
|
||||
static void fwrite16le(ALushort val, FILE *f)
|
||||
{
|
||||
ALubyte data[2] = { (ALubyte)(val&0xff), (ALubyte)((val>>8)&0xff) };
|
||||
ALubyte data[2];
|
||||
data[0] = (ALubyte)(val&0xff);
|
||||
data[1] = (ALubyte)(val>>8);
|
||||
fwrite(data, 1, 2, f);
|
||||
}
|
||||
|
||||
static void fwrite32le(ALuint val, FILE *f)
|
||||
{
|
||||
ALubyte data[4] = { (ALubyte)(val&0xff), (ALubyte)((val>>8)&0xff), (ALubyte)((val>>16)&0xff),
|
||||
(ALubyte)((val>>24)&0xff) };
|
||||
ALubyte data[4];
|
||||
data[0] = (ALubyte)(val&0xff);
|
||||
data[1] = (ALubyte)((val>>8)&0xff);
|
||||
data[2] = (ALubyte)((val>>16)&0xff);
|
||||
data[3] = (ALubyte)(val>>24);
|
||||
fwrite(data, 1, 4, f);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user