qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject qpid-proton git commit: PROTON-1640: [ruby] Fix handling of decimal32 type on 32 bit systems
Date Tue, 13 Mar 2018 02:03:45 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master f1100fea2 -> 7f677ae4a


PROTON-1640: [ruby] Fix handling of decimal32 type on 32 bit systems


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/7f677ae4
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/7f677ae4
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/7f677ae4

Branch: refs/heads/master
Commit: 7f677ae4abb8cf2fcff92a9a61a71b645d673189
Parents: f1100fe
Author: Andrew Stitcher <astitcher@apache.org>
Authored: Mon Mar 12 21:47:27 2018 -0400
Committer: Andrew Stitcher <astitcher@apache.org>
Committed: Mon Mar 12 21:47:27 2018 -0400

----------------------------------------------------------------------
 proton-c/bindings/ruby/cproton.i | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/7f677ae4/proton-c/bindings/ruby/cproton.i
----------------------------------------------------------------------
diff --git a/proton-c/bindings/ruby/cproton.i b/proton-c/bindings/ruby/cproton.i
index 4dcae01..a9c731a 100644
--- a/proton-c/bindings/ruby/cproton.i
+++ b/proton-c/bindings/ruby/cproton.i
@@ -184,12 +184,12 @@ Keep preprocessor directives and macro expansions in the normal header
section.
 
 %typemap (in) pn_decimal32_t
 {
-  $1 = FIX2UINT($input);
+  $1 = NUM2UINT($input);
 }
 
 %typemap (out) pn_decimal32_t
 {
-  $result = ULL2NUM($1);
+  $result = UINT2NUM($1);
 }
 
 %typemap (in) pn_decimal64_t


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message