mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Use doubles instead of floats for the time argument in Source:seek. This probably won't affect anything meaningfully, but in theory it's more precise.
This commit is contained in:
@@ -96,7 +96,7 @@ int w_Decoder_decode(lua_State *L)
|
||||
int w_Decoder_seek(lua_State *L)
|
||||
{
|
||||
Decoder *t = luax_checkdecoder(L, 1);
|
||||
float offset = luaL_checknumber(L, 2);
|
||||
double offset = luaL_checknumber(L, 2);
|
||||
if (offset < 0)
|
||||
return luaL_argerror(L, 2, "can't seek to a negative position");
|
||||
else if (offset == 0)
|
||||
|
||||
Reference in New Issue
Block a user