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:
hendricks266 2015-11-28 09:06:22 +00:00
parent aac7301af8
commit a5ce52dc78
2 changed files with 3 additions and 3 deletions

View file

@ -2152,7 +2152,7 @@ static void polymer_emptybuckets(void)
} }
// ensure space in index ring, wrap otherwise // ensure space in index ring, wrap otherwise
if (indexcount + prindexringoffset >= prindexringsize) if (indexcount + prindexringoffset >= (unsigned)prindexringsize)
{ {
bglUnmapBufferARB(GL_ELEMENT_ARRAY_BUFFER); bglUnmapBufferARB(GL_ELEMENT_ARRAY_BUFFER);
prindexring = (GLuint *)bglMapBufferRange(GL_ELEMENT_ARRAY_BUFFER, 0, prindexringsize * sizeof(GLuint), GL_MAP_INVALIDATE_BUFFER_BIT | prindexringmapflags); prindexring = (GLuint *)bglMapBufferRange(GL_ELEMENT_ARRAY_BUFFER, 0, prindexringsize * sizeof(GLuint), GL_MAP_INVALIDATE_BUFFER_BIT | prindexringmapflags);

View file

@ -511,7 +511,7 @@ static int G_ReadRegistryValue(char const * const SubKey, char const * const Val
if (keygood != ERROR_SUCCESS) if (keygood != ERROR_SUCCESS)
return 0; return 0;
LSTATUS retval = SHGetValueA(hkey, SubKey, Value, NULL, Output, OutputSize); LONG retval = SHGetValueA(hkey, SubKey, Value, NULL, Output, OutputSize);
RegCloseKey(hkey); RegCloseKey(hkey);
@ -1109,7 +1109,7 @@ int32_t S_OpenAudio(const char *fn, char searchfirst, uint8_t const ismusic)
if (origparent != NULL) if (origparent != NULL)
{ {
char const * const origparentextension = Bstrrchr(origparent, '.'); 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); Bsprintf(testfn, "music/%.*s/%s", namelength, origparent, fn);
int32_t const fp = S_TryExtensionReplacements(testfn, searchfirst, ismusic); int32_t const fp = S_TryExtensionReplacements(testfn, searchfirst, ismusic);