mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Remove Data:getInt64 and ByteData:setInt64.
Lua numbers don't cover the full range for 64 bit integers, so those methods couldn't be reliable.
This commit is contained in:
@@ -135,16 +135,6 @@ int w_ByteData_setUInt32(lua_State *L)
|
||||
return w_ByteData_setT<uint32>(L);
|
||||
}
|
||||
|
||||
int w_ByteData_setInt64(lua_State *L)
|
||||
{
|
||||
return w_ByteData_setT<int64>(L);
|
||||
}
|
||||
|
||||
int w_ByteData_setUInt64(lua_State *L)
|
||||
{
|
||||
return w_ByteData_setT<uint64>(L);
|
||||
}
|
||||
|
||||
static const luaL_Reg w_ByteData_functions[] =
|
||||
{
|
||||
{ "clone", w_ByteData_clone },
|
||||
@@ -157,8 +147,6 @@ static const luaL_Reg w_ByteData_functions[] =
|
||||
{ "setUInt16", w_ByteData_setUInt16 },
|
||||
{ "setInt32", w_ByteData_setInt32 },
|
||||
{ "setUInt32", w_ByteData_setUInt32 },
|
||||
{ "setInt64", w_ByteData_setInt64 },
|
||||
{ "setUInt64", w_ByteData_setUInt64 },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
@@ -160,16 +160,6 @@ int w_Data_getUInt32(lua_State* L)
|
||||
return w_Data_getT<uint32>(L);
|
||||
}
|
||||
|
||||
int w_Data_getInt64(lua_State* L)
|
||||
{
|
||||
return w_Data_getT<int64>(L);
|
||||
}
|
||||
|
||||
int w_Data_getUInt64(lua_State* L)
|
||||
{
|
||||
return w_Data_getT<uint64>(L);
|
||||
}
|
||||
|
||||
// C functions in a struct, necessary for the FFI versions of Data methods.
|
||||
struct FFI_Data
|
||||
{
|
||||
@@ -200,8 +190,6 @@ const luaL_Reg w_Data_functions[] =
|
||||
{ "getUInt16", w_Data_getUInt16 },
|
||||
{ "getInt32", w_Data_getInt32 },
|
||||
{ "getUInt32", w_Data_getUInt32 },
|
||||
{ "getInt64", w_Data_getInt64 },
|
||||
{ "getUInt64", w_Data_getUInt64 },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user