projects
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17805e5
)
add Value::from(float)
author
Sean Middleditch
<sean@middleditch.us>
Thu, 14 Jan 2010 02:32:44 +0000
(18:32 -0800)
committer
Sean Middleditch
<sean@middleditch.us>
Thu, 14 Jan 2010 02:32:44 +0000
(18:32 -0800)
janssonxx.h
patch
|
blob
|
history
diff --git
a/janssonxx.h
b/janssonxx.h
index
0871c52
..
e09010d
100644
(file)
--- a/
janssonxx.h
+++ b/
janssonxx.h
@@
-76,6
+76,7
@@
public:
static Value from(unsigned short value) { return Value::_take(json_integer(value)); }
static Value from(signed long value) { return Value::_take(json_integer(value)); }
static Value from(unsigned long value) { return Value::_take(json_integer(value)); }
+ static Value from(float value) { return Value::_take(json_real(value)); }
static Value from(double value) { return Value::_take(json_real(value)); }
// create a new empty object