You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cache::invalid value only makes sense as a std::ptrdiff_t and the compiler accepts the wrong order because of implicit type casting of integer types.
I'm pretty sure there is a bug in the order of arguments passed here:
https://github.com/luabind/luabind/blob/master/src/inheritance.cpp#L193
I think it should be:
m_cache.put(src, target, dynamic_id, object_offset, -1, cache::invalid);
The cache::invalid value only makes sense as a std::ptrdiff_t and the compiler accepts the wrong order because of implicit type casting of integer types.
I've copied a lot of luabind code for my own binding library 'clbind' in clasp (https://github.com/clasp-developers/clasp.git) - a Common Lisp that interoperates with C++.
The text was updated successfully, but these errors were encountered: