Skip to content

Commit

Permalink
fix an error in the lua typemaps (checking for the typecode without u…
Browse files Browse the repository at this point in the history
…sing strcmp)
  • Loading branch information
Soeren Sonnenburg committed Oct 28, 2011
1 parent 082decd commit e9c8ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/lua_modular/swig_typemaps.i
Expand Up @@ -342,7 +342,7 @@ TYPEMAP_SGMATRIX(float64_t)
lua_newtable(L);

for (i = 0; i < num; i++) {
if (TYPECODE == "String[]") {
if (strcmp(TYPECODE, "String[]") == 0) {
lua_pushstring(L, (char *)str[i].string);
lua_rawseti(L, -2, i + 1);
}
Expand Down

0 comments on commit e9c8ecd

Please sign in to comment.