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
I have been using UniLua happily a while ago, not pivking things up again, I run into an overflowexception
It breaks in LuaTable.cs line 324 and the hashcode detexted was of a "_G" string. Clearly the (uint) cast does not accept this negative number. Changing to uint n = (uint) Math.Abs(hashcode) gives me additional problems. Any clues ?
Regards, Eelco
// LuaTable.cs line 324
private HNode GetHashNode(int hashcode)
{
uint n = (uint) hashcode;
return HashPart[n % HashPart.Length];
}
The text was updated successfully, but these errors were encountered:
I solved it by adding some unchecked where int's were casted to uints, but still do not know why the problem pop's up
Hope this is of use for anyone...
I have been using UniLua happily a while ago, not pivking things up again, I run into an overflowexception
It breaks in LuaTable.cs line 324 and the hashcode detexted was of a "_G" string. Clearly the (uint) cast does not accept this negative number. Changing to uint n = (uint) Math.Abs(hashcode) gives me additional problems. Any clues ?
Regards, Eelco
// LuaTable.cs line 324
private HNode GetHashNode(int hashcode)
{
uint n = (uint) hashcode;
return HashPart[n % HashPart.Length];
}
The text was updated successfully, but these errors were encountered: