From d34fcaf9713e5a3e8aad3e726a98b5ffbbd9dd31 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 28 Jan 2018 16:50:56 +0400 Subject: [PATCH] Test --- crypto777/OS_portable.h | 2 +- includes/cJSON.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto777/OS_portable.h b/crypto777/OS_portable.h index 07b9d5f67..4d3823942 100755 --- a/crypto777/OS_portable.h +++ b/crypto777/OS_portable.h @@ -115,7 +115,7 @@ int32_t hseek(HUFF *hp,int32_t offset,int32_t mode); #define GENESIS_SECRET "It was a bright cold day in April, and the clocks were striking thirteen." #define SATOSHIDEN ((uint64_t)100000000L) -#define dstr(x) ((double)((uint64_t)(x)) / SATOSHIDEN) +#define dstr(x) ((double)((uint64_t)(x)) / SATOSHIDEN + 0.0000000049) #define SMALLVAL 0.000000000000001 diff --git a/includes/cJSON.h b/includes/cJSON.h index 47e39f07d..9dfd88e5a 100755 --- a/includes/cJSON.h +++ b/includes/cJSON.h @@ -31,7 +31,7 @@ #include "../crypto777/OS_portable.h" #define SATOSHIDEN ((uint64_t)100000000L) -#define dstr(x) ((double)((uint64_t)(x)) / SATOSHIDEN) +#define dstr(x) ((double)((uint64_t)(x)) / SATOSHIDEN + 0.0000000049) #define MAX_JSON_FIELD 4096 // on the big side #ifdef __cplusplus