summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaya Rashish <[email protected]>2019-09-26 17:14:34 +0300
committerMatt Turner <[email protected]>2019-09-26 17:46:26 +0000
commite16fadd545d82e7dac5b5cd57144d2459618adc9 (patch)
tree6152674dcca060d6f09fbd64d26167eb07902142 /src
parenta1ff8dbb1e4f526605abe94c5631272e4ab5a7db (diff)
intel/compiler: avoid truncating int64_t to int
Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Maya Rashish <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/compiler/brw_fs_combine_constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_fs_combine_constants.cpp b/src/intel/compiler/brw_fs_combine_constants.cpp
index 0fff87820e1..182c24b5558 100644
--- a/src/intel/compiler/brw_fs_combine_constants.cpp
+++ b/src/intel/compiler/brw_fs_combine_constants.cpp
@@ -232,7 +232,7 @@ get_constant_value(const struct gen_device_info *devinfo,
break;
}
case BRW_REGISTER_TYPE_Q: {
- int64_t val = !can_do_source_mods ? src->d64 : abs(src->d64);
+ int64_t val = !can_do_source_mods ? src->d64 : llabs(src->d64);
memcpy(out, &val, 8);
break;
}