summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2012-12-14 19:56:49 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2012-12-14 19:56:49 +0000
commit9349fbf372706752c75f6ff0f789032311d66918 (patch)
treec7aa7211820107570f6d06376ad0dfec981558a9 /cpp
parent5ca658c1f4b31755fcc6a58d53937eecd1378b64 (diff)
downloadqpid-python-9349fbf372706752c75f6ff0f789032311d66918.tar.gz
QPID-4507: Perl bindings were not properly handling int8 and uint8 types.
Handlers were in place to map between 16-64 bit types but not the 8-bit types. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1422060 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/bindings/swig_perl_typemaps.i8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/bindings/swig_perl_typemaps.i b/cpp/bindings/swig_perl_typemaps.i
index 201e64bac6..02e2d4a6b6 100644
--- a/cpp/bindings/swig_perl_typemaps.i
+++ b/cpp/bindings/swig_perl_typemaps.i
@@ -175,7 +175,7 @@
argvi++;
}
-%typemap (in) uint16_t, uint32_t, uint64_t {
+%typemap (in) uint8_t, uint16_t, uint32_t, uint64_t {
if (SvIOK($input)) {
$1 = ($1_ltype)SvUV($input);
}
@@ -184,12 +184,12 @@
}
}
-%typemap (out) uint16_t, uint32_t, uint64_t {
+%typemap (out) uint8_t, uint16_t, uint32_t, uint64_t {
sv_setuv($result, (UV)$1);
argvi++;
}
-%typemap (in) int32_t, int64_t {
+%typemap (in) int8_t, int16_t, int32_t, int64_t {
if (SvIOK($input)) {
$1 = ($1_ltype)SvIV($input);
}
@@ -198,7 +198,7 @@
}
}
-%typemap (out) int32_t, int64_t {
+%typemap (out) int8_t, int16_t, int32_t, int64_t {
sv_setiv($result, (IV)$1);
argvi++;
}