parent
4831e7c8cb
commit
6f90dfd106
@ -1,3 +1,4 @@
|
|||||||
/msgpack-0.5.7.tar.gz
|
/msgpack-0.5.7.tar.gz
|
||||||
/msgpack-0.5.8.tar.gz
|
/msgpack-0.5.8.tar.gz
|
||||||
/msgpack-0.5.9.tar.gz
|
/msgpack-0.5.9.tar.gz
|
||||||
|
/msgpack-1.3.0.tar.gz
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
From c203928fae924e017f39afb2723414d458fc01a1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Daiki Ueno <ueno@gnu.org>
|
|
||||||
Date: Thu, 17 Jul 2014 18:38:04 +0900
|
|
||||||
Subject: [PATCH] Fix test failure regarding int->float conversion
|
|
||||||
|
|
||||||
Supply only small integers (< 1^24) to int->float conversion tests,
|
|
||||||
so they can roundtrip without error.
|
|
||||||
---
|
|
||||||
test/msgpack_test.cpp | 4 +---
|
|
||||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/test/msgpack_test.cpp b/test/msgpack_test.cpp
|
|
||||||
index fb35c68..6917caf 100644
|
|
||||||
--- a/test/msgpack_test.cpp
|
|
||||||
+++ b/test/msgpack_test.cpp
|
|
||||||
@@ -201,10 +201,8 @@ TYPED_TEST_P(IntegerToFloatingPointTest, simple_buffer)
|
|
||||||
v.push_back(1);
|
|
||||||
if (numeric_limits<integer_type>::is_signed) v.push_back(-1);
|
|
||||||
else v.push_back(2);
|
|
||||||
- v.push_back(numeric_limits<integer_type>::min());
|
|
||||||
- v.push_back(numeric_limits<integer_type>::max());
|
|
||||||
for (unsigned int i = 0; i < kLoop; i++) {
|
|
||||||
- v.push_back(rand());
|
|
||||||
+ v.push_back(rand() % 0x7FFFFF);
|
|
||||||
}
|
|
||||||
for (unsigned int i = 0; i < v.size() ; i++) {
|
|
||||||
msgpack::sbuffer sbuf;
|
|
||||||
--
|
|
||||||
1.9.3
|
|
||||||
|
|
Loading…
Reference in new issue