From 679ec0a1391283f1b13c3cd8db0139eb4883b2fc Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Tue, 27 May 2014 10:38:56 +0100 Subject: [PATCH] aio.hpp: read() uses basic type to make generation of swig interfaces easier Signed-off-by: Brendan Le Foll --- api/aio.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/aio.hpp b/api/aio.hpp index bab5fc4..f882b6c 100644 --- a/api/aio.hpp +++ b/api/aio.hpp @@ -42,8 +42,9 @@ class Aio { ~Aio() { maa_aio_close(m_aio); } - uint16_t read() { - return maa_aio_read(m_aio); + int read() { + // Use basic types to make swig code generation simpler + return (int) maa_aio_read(m_aio); } private: maa_aio_context m_aio; -- 2.7.4