Skip to content
Unverified Commit 75153c66 authored by Nikita Shulga's avatar Nikita Shulga Committed by GitHub
Browse files

Fix undefined behaviour in vilogbk_vi_vd (#355)

C standard do not define have left shift should affect the sign bit, which results in the following runtime error if `vilogbk_vi_vd` is compiled by clang with sanitizer checks enabled:
```
sleef/src/libm/sleefsimddp.c:329:49: runtime error: left shift of 4095 by 20 places cannot be represented in type 'int'
```
Can be fixed by explicitly specifying type of shift 1st operand as unsigned: i.e. replacing `1` with `1U`
parent 7ce51c44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment