Ticket #39263: xraylib.i.diff

File xraylib.i.diff, 630 bytes (added by Tom.Schoonjans@…, 11 years ago)
  • src/xraylib.i

    old new  
    351351                lua_getfield(L, $input,"atom");
    352352                if (lua_istable(L,-1)) {
    353353                        /* count number of elements */
    354                         size_t n_atom = lua_objlen(L, -1);
     354                        size_t n_atom = lua_rawlen(L, -1);
    355355                        if (n_atom != cs->n_atom) {
    356356                                SWIG_exception(SWIG_RuntimeError,"n_atom hash value differs from number of elements");
    357357                        }