mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
Fix warning: signed and unsigned type in conditional expression [-Wsign-compare]
git-svn-id: https://svn.eduke32.com/eduke32@5852 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
da52bac304
commit
4a6676dd87
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ int32_t loadpics(const char *filename, int32_t askedsize)
|
|||
Bmemset(gotpic, 0, sizeof(gotpic));
|
||||
|
||||
//cachesize = min((int32_t)((Bgetsysmemsize()/100)*60),max(artsize,askedsize));
|
||||
cachesize = (Bgetsysmemsize() <= (uint32_t)askedsize) ? (Bgetsysmemsize() / 100) * 60 : askedsize;
|
||||
cachesize = (Bgetsysmemsize() <= (uint32_t)askedsize) ? (int32_t)((Bgetsysmemsize() / 100) * 60) : askedsize;
|
||||
|
||||
// NOTE: this doesn't make a lot of sense on modern OSs...
|
||||
while ((pic = Bmalloc(cachesize)) == NULL)
|
||||
|
|
Loading…
Reference in a new issue