mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
intel/compiler: avoid truncating int64_t to int
Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Maya Rashish <maya@netbsd.org>
This commit is contained in:
parent
a1ff8dbb1e
commit
e16fadd545
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue