intel/aubinator: fix 32bit shift overflow warning
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 10 Dec 2016 19:10:46 +0000 (21:10 +0200)
committerEduardo Lima Mitev <elima@igalia.com>
Sun, 11 Dec 2016 19:04:15 +0000 (20:04 +0100)
Doesn't look like this can work on 32bit, just rids of annoying
warning.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/intel/tools/aubinator.c

index 5e3a6843c8b6c1048f310109139a6a7b281b0add..e2bec8f94941b9cf02e1b6c7ff7b5ddc2ef54e10 100644 (file)
@@ -1297,7 +1297,7 @@ int main(int argc, char *argv[])
       file = aub_file_open(input_file);
 
    /* mmap a terabyte for our gtt space. */
-   gtt_size = 1ul << 40;
+   gtt_size = 1ull << 40;
    gtt = mmap(NULL, gtt_size, PROT_READ | PROT_WRITE,
               MAP_PRIVATE | MAP_ANONYMOUS |  MAP_NORESERVE, -1, 0);
    if (gtt == MAP_FAILED) {