diff options
author | Grazvydas Ignotas <[email protected]> | 2017-03-09 02:54:53 +0200 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-09 20:26:30 +1100 |
commit | 61bbb25a080e48a8ca897ba7f6e73cc6a8e9b5b8 (patch) | |
tree | 84bfcb48159cc4d685e9f859f03415c0b17c4da4 /src/mesa/main/samplerobj.c | |
parent | 926bcacfd3f9025007455c026d44f810018cf787 (diff) |
util/disk_cache: fix size subtraction on 32bit
Negating size_t on 32bit produces a 32bit result. This was effectively
adding values close to UINT_MAX to the cache size (the files are usually
small) instead of intended subtraction.
Fixes 'make check' disk_cache failures on 32bit.
Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/samplerobj.c')
0 files changed, 0 insertions, 0 deletions