diff --git a/crypto777/OS_portable.h b/crypto777/OS_portable.h index 362432e8d..8c109e5d0 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)((x)) / SATOSHIDEN) +#define dstr(x) ((double)(x) / SATOSHIDEN) #define SMALLVAL 0.000000000000001 diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index db8bc57b7..a0641f839 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -115,6 +115,11 @@ int main(int argc, const char * argv[]) { char dirname[512],*passphrase; double incr; cJSON *retjson; OS_init(); + { + cJSON *test = cJSON_CreateObject(); + jaddnum(test,"test",-5); + printf("test (%s)\n",jprint(test,0)); + } if ( strstr(argv[0],"btc2kmd") != 0 && argv[1] != 0 ) { uint8_t addrtype,rmd160[20],rmd160b[20]; char coinaddr[64],coinaddr2[64]; diff --git a/includes/cJSON.h b/includes/cJSON.h index 999f5ce21..db9b2fc72 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)((x)) / SATOSHIDEN) +#define dstr(x) ((double)(x) / SATOSHIDEN) #define MAX_JSON_FIELD 4096 // on the big side #ifdef __cplusplus