diff options
author | ng420 <nish.gupta01@gmail.com> | 2016-08-16 20:29:11 +0100 |
---|---|---|
committer | ng420 <nish.gupta01@gmail.com> | 2016-08-16 20:29:11 +0100 |
commit | 0128d66ffd327a084ececa71344e01ae0be75047 (patch) | |
tree | 21d154f68b8142f8266e7c8eb9352fec274607db | |
parent | 2fdbf26c14447ceaa1783888a6bec540615606dd (diff) | |
download | swig-0128d66ffd327a084ececa71344e01ae0be75047.tar.gz |
Add casts to out typemaps
-rw-r--r-- | Lib/hhvm/hhvm.swg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/hhvm/hhvm.swg b/Lib/hhvm/hhvm.swg index 657098b9a..137879291 100644 --- a/Lib/hhvm/hhvm.swg +++ b/Lib/hhvm/hhvm.swg @@ -218,14 +218,14 @@ SWIGINTERN const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { 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);" |