git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix warning for size_t pass-through unbox
commit5a39ab6253c392b9adfd4f61f587287e55433e69 authorAndy Arvanitis <andyarvanitis@gmail.com> dateSat 25 Aug 2018, 15:31 (8 years ago) parentb5707f3
1 file changed+7
runtime/purescript.h+7
runtime/purescript.h+7
@@ -159,6 +159,13 @@ namespace purescript {
159159 return value;
160160 }
161161
162+ template <typename T,
163+ typename = typename std::enable_if<!std::is_same<T, const boxed&>::value &&
164+ std::is_same<T, int>::value>::type>
165+ constexpr auto unbox(const std::size_t value) -> long long {
166+ return value;
167+ }
168+
162169 template <typename T>
163170 inline auto peek(boxed& b) -> T& {
164171 auto& unboxed = *static_cast<T*>(b.get());