summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2016-12-10 21:10:46 +0200
committerEduardo Lima Mitev <[email protected]>2016-12-11 20:04:15 +0100
commitb58d1eecc6516749c160942855a9d6b558f1e947 (patch)
treeb1022e74e36c9f3dfeacad5000dc89759027dbeb /src
parent3a1b15c3921d25ea2e6e81f500c3f45c84b95817 (diff)
intel/aubinator: fix 32bit shift overflow warning
Doesn't look like this can work on 32bit, just rids of annoying warning. Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/tools/aubinator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 5e3a6843c8b..e2bec8f9494 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -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) {