aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-06-19 16:06:10 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-06-19 16:06:10 -0400
commitc7804277bf390eeba368e3565b2aff0cf96f86b0 (patch)
treecdf926acbc28a278ffeeb92552631a724c2da98d /src/all_types.hpp
parent0b92d689d0e64164bb8908c807db9338d59c41ce (diff)
downloadzig-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.hpp1
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,
};