Commit d3e34711 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi
Browse files

Use type compatibles with Matlab (size_t instead of int)

parent 2a512488
......@@ -1232,7 +1232,7 @@ public:
CompileCode.write(reinterpret_cast<char *>(&row), sizeof(row));
CompileCode.write(reinterpret_cast<char *>(&col), sizeof(col));
CompileCode.write(reinterpret_cast<char *>(&function_type), sizeof(function_type));
int size = func_name.size();
size_t size = func_name.size();
CompileCode.write(reinterpret_cast<char *>(&size), sizeof(int));
const char *name = func_name.c_str();
CompileCode.write(reinterpret_cast<const char *>(name), func_name.size());
......@@ -1607,7 +1607,7 @@ class CodeLoad
uint8_t *code;
unsigned int nb_blocks;
vector<unsigned int> begin_block;
vector<size_t> begin_block;
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];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment