mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Fix compiler warnings when building for 32-bit.
git-svn-id: https://svn.eduke32.com/eduke32@5456 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
aac7301af8
commit
a5ce52dc78
2 changed files with 3 additions and 3 deletions
|
@ -2152,7 +2152,7 @@ static void polymer_emptybuckets(void)
|
|||
}
|
||||
|
||||
// ensure space in index ring, wrap otherwise
|
||||
if (indexcount + prindexringoffset >= prindexringsize)
|
||||
if (indexcount + prindexringoffset >= (unsigned)prindexringsize)
|
||||
{
|
||||
bglUnmapBufferARB(GL_ELEMENT_ARRAY_BUFFER);
|
||||
prindexring = (GLuint *)bglMapBufferRange(GL_ELEMENT_ARRAY_BUFFER, 0, prindexringsize * sizeof(GLuint), GL_MAP_INVALIDATE_BUFFER_BIT | prindexringmapflags);
|
||||
|
|
|
@ -511,7 +511,7 @@ static int G_ReadRegistryValue(char const * const SubKey, char const * const Val
|
|||
if (keygood != ERROR_SUCCESS)
|
||||
return 0;
|
||||
|
||||
LSTATUS retval = SHGetValueA(hkey, SubKey, Value, NULL, Output, OutputSize);
|
||||
LONG retval = SHGetValueA(hkey, SubKey, Value, NULL, Output, OutputSize);
|
||||
|
||||
RegCloseKey(hkey);
|
||||
|
||||
|
@ -1109,7 +1109,7 @@ int32_t S_OpenAudio(const char *fn, char searchfirst, uint8_t const ismusic)
|
|||
if (origparent != NULL)
|
||||
{
|
||||
char const * const origparentextension = Bstrrchr(origparent, '.');
|
||||
uint32_t namelength = origparentextension != NULL ? origparentextension - origparent : origparentlength;
|
||||
uint32_t namelength = origparentextension != NULL ? (unsigned)(origparentextension - origparent) : origparentlength;
|
||||
|
||||
Bsprintf(testfn, "music/%.*s/%s", namelength, origparent, fn);
|
||||
int32_t const fp = S_TryExtensionReplacements(testfn, searchfirst, ismusic);
|
||||
|
|
Loading…
Reference in a new issue