From e01468e09d40c949e5784d7cb04cd6ed06faf709 Mon Sep 17 00:00:00 2001 From: Ferhat Mihoubi Date: Fri, 22 Mar 2013 15:48:47 +0100 Subject: [PATCH] Use type compatibles with Matlab (size_t instead of int) --- CodeInterpreter.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CodeInterpreter.hh b/CodeInterpreter.hh index d7585379..f4b7979d 100644 --- a/CodeInterpreter.hh +++ b/CodeInterpreter.hh @@ -1232,7 +1232,7 @@ public: CompileCode.write(reinterpret_cast(&row), sizeof(row)); CompileCode.write(reinterpret_cast(&col), sizeof(col)); CompileCode.write(reinterpret_cast(&function_type), sizeof(function_type)); - int size = func_name.size(); + size_t size = func_name.size(); CompileCode.write(reinterpret_cast(&size), sizeof(int)); const char *name = func_name.c_str(); CompileCode.write(reinterpret_cast(name), func_name.size()); @@ -1607,7 +1607,7 @@ class CodeLoad private: uint8_t *code; unsigned int nb_blocks; - vector begin_block; + vector begin_block; public: inline unsigned int @@ -1616,7 +1616,7 @@ public: return nb_blocks; }; - unsigned int inline + size_t inline get_begin_block(int block) { return begin_block[block];