Ticket #39263: xraylib.i.diff
File xraylib.i.diff, 630 bytes (added by Tom.Schoonjans@…, 11 years ago) |
---|
-
src/xraylib.i
old new 351 351 lua_getfield(L, $input,"atom"); 352 352 if (lua_istable(L,-1)) { 353 353 /* count number of elements */ 354 size_t n_atom = lua_ objlen(L, -1);354 size_t n_atom = lua_rawlen(L, -1); 355 355 if (n_atom != cs->n_atom) { 356 356 SWIG_exception(SWIG_RuntimeError,"n_atom hash value differs from number of elements"); 357 357 }