aboutsummaryrefslogtreecommitdiff
path: root/src/value.c
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-04-29 22:09:29 +0300
committerPetri Lehtinen <petri@digip.org>2012-04-29 22:09:29 +0300
commitff0c05b8f13f4f8a1da82ef1337d594916ef9df9 (patch)
tree7a423885211084bd37b73a727499884ed1c97fb7 /src/value.c
parent4601bf71e532c7a0be2f468521e54e86666c6c63 (diff)
downloadjansson-ff0c05b8f13f4f8a1da82ef1337d594916ef9df9.zip
jansson-ff0c05b8f13f4f8a1da82ef1337d594916ef9df9.tar.gz
jansson-ff0c05b8f13f4f8a1da82ef1337d594916ef9df9.tar.bz2
Support building on Windows
Jansson now builds correctly with Visual C++ Express 2010.
Diffstat (limited to 'src/value.c')
-rw-r--r--src/value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.c b/src/value.c
index 70d03ca..8d05d91 100644
--- a/src/value.c
+++ b/src/value.c
@@ -11,7 +11,7 @@
#include <stdlib.h>
#include <string.h>
-#include <jansson.h>
+#include "jansson.h"
#include "hashtable.h"
#include "jansson_private.h"
#include "utf.h"
@@ -779,7 +779,7 @@ static json_t *json_real_copy(json_t *real)
double json_number_value(const json_t *json)
{
if(json_is_integer(json))
- return json_integer_value(json);
+ return (double)json_integer_value(json);
else if(json_is_real(json))
return json_real_value(json);
else