From 2da3c2316593138d19f107f1fd0e4615bea5efd9 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 20 Feb 2023 21:56:47 +0800 Subject: [PATCH] check float is IEEE 754 format --- src/memory.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/memory.h b/src/memory.h index 980031ca..ce290def 100644 --- a/src/memory.h +++ b/src/memory.h @@ -113,4 +113,6 @@ namespace pkpy{ }; static_assert(sizeof(i64) == sizeof(pkpy::shared_ptr)); -static_assert(sizeof(f64) == sizeof(pkpy::shared_ptr)); \ No newline at end of file +static_assert(sizeof(f64) == sizeof(pkpy::shared_ptr)); +static_assert(std::numeric_limits::is_iec559); +static_assert(std::numeric_limits::is_iec559); \ No newline at end of file