Commit e16fadd5 authored by Maya Rashish's avatar Maya Rashish Committed by Matt Turner
Browse files

intel/compiler: avoid truncating int64_t to int


Reviewed-by: Matt Turner's avatarMatt Turner <mattst88@gmail.com>
Signed-off-by: default avatarMaya Rashish <maya@netbsd.org>
parent a1ff8dbb
Pipeline #66751 failed with stages
in 6 minutes and 46 seconds
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment