diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-06-19 16:06:10 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-06-19 16:06:10 -0400 |
| commit | c7804277bf390eeba368e3565b2aff0cf96f86b0 (patch) | |
| tree | cdf926acbc28a278ffeeb92552631a724c2da98d /src/all_types.hpp | |
| parent | 0b92d689d0e64164bb8908c807db9338d59c41ce (diff) | |
| download | zig-c7804277bf390eeba368e3565b2aff0cf96f86b0.tar.gz zig-c7804277bf390eeba368e3565b2aff0cf96f86b0.zip | |
`@floatToInt` now has safety-checked undefined behavior
when the integer part does not fit in the destination integer type
* Also fix incorrect safety triggered for integer casting an
`i32` to a `u7`. closes #1138
* adds compiler-rt function: `__floatuntidf`
Diffstat (limited to 'src/all_types.hpp')
| -rw-r--r-- | src/all_types.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp index 41c9fe18c3..12e054cbeb 100644 --- a/src/all_types.hpp +++ b/src/all_types.hpp @@ -1434,6 +1434,7 @@ enum PanicMsgId { PanicMsgIdIncorrectAlignment, PanicMsgIdBadUnionField, PanicMsgIdBadEnumValue, + PanicMsgIdFloatToInt, PanicMsgIdCount, }; |
