Skip to content

Commit

Permalink
Fixed missing init in bcd:bits constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickfrey committed Nov 20, 2020
1 parent e3985d8 commit 0a77250
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luabcd-1.0-7.rockspec → luabcd-1.0-8.rockspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package = "LuaBcd"
version = "1.0-7"
version = "1.0-8"
source = {
url = "git://github.com/patrickfrey/luabcd",
tag = "1.0-7"
tag = "1.0-8"
}
description = {
summary = "BCD arithmetic for arbitrary large integers",
Expand Down
1 change: 1 addition & 0 deletions src/lualib_bcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ static int bcd_bits_create( lua_State* ls)
}
int nofBits = lua_tointeger( ls, 1);
bcd_bits_userdata_t* rt = (bcd_bits_userdata_t*)lua_newuserdata( ls, sizeof(bcd_bits_userdata_t));
rt->init();
luaL_getmetatable( ls, bcd_bits_userdata_t::metatableName());
lua_setmetatable( ls, -2);
rt->create( bcd::BigInt::getBitValues( nofBits));
Expand Down

0 comments on commit 0a77250

Please sign in to comment.