diff options
Diffstat (limited to 'src/i810_memory.c')
-rw-r--r-- | src/i810_memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i810_memory.c b/src/i810_memory.c index 8b899fbe..75ec2442 100644 --- a/src/i810_memory.c +++ b/src/i810_memory.c @@ -55,7 +55,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. int I810AllocLow(I810MemRange * result, I810MemRange * pool, int size) { - if (size > pool->Size) + if (size > (long)pool->Size) return 0; pool->Size -= size; @@ -69,7 +69,7 @@ I810AllocLow(I810MemRange * result, I810MemRange * pool, int size) int I810AllocHigh(I810MemRange * result, I810MemRange * pool, int size) { - if (size > pool->Size) + if (size > (long)pool->Size) return 0; pool->Size -= size; |