aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_node.c')
-rw-r--r--test/test_node.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_node.c b/test/test_node.c
index eb432c40..c2fccf08 100644
--- a/test/test_node.c
+++ b/test/test_node.c
@@ -71,8 +71,8 @@ test_double_to_node(void)
-16.00001,
5.000000005,
0.0000000001,
- NAN,
- INFINITY};
+ (double)NAN,
+ (double)INFINITY};
const char* dbl_test_strs[] = {"0.0",
"9.0",
@@ -123,6 +123,7 @@ test_blob_to_node(void)
{
for (size_t size = 1; size < 256; ++size) {
uint8_t* const data = (uint8_t*)malloc(size);
+ assert(data);
for (size_t i = 0; i < size; ++i) {
data[i] = (uint8_t)((size + i) % 256);
}