commit | 0128d66ffd327a084ececa71344e01ae0be75047 | [log] [tgz] |
---|---|---|
author | ng420 <nish.gupta01@gmail.com> | Tue Aug 16 20:29:11 2016 +0100 |
committer | ng420 <nish.gupta01@gmail.com> | Tue Aug 16 20:29:11 2016 +0100 |
tree | 21d154f68b8142f8266e7c8eb9352fec274607db | |
parent | 2fdbf26c14447ceaa1783888a6bec540615606dd [diff] |
Add casts to out typemaps
diff --git a/Lib/hhvm/hhvm.swg b/Lib/hhvm/hhvm.swg index 657098b..1378792 100644 --- a/Lib/hhvm/hhvm.swg +++ b/Lib/hhvm/hhvm.swg
@@ -218,14 +218,14 @@ unsigned char, signed char, enum SWIGTYPE - "$result = $1;" + "$result = (int64_t)$1;" %typemap(out) bool - "$result = $1;" + "$result = (bool)$1;" %typemap(out) float, double - "$result = $1;" + "$result = (double)$1;" %typemap(out) char "$result = HPHP::String::FromChar($1);"