Skip to content
Snippets Groups Projects
Commit 7df1a733 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Review fixes for #1279: update a comment

parent ad66cbed
No related branches found
No related tags found
No related merge requests found
......@@ -711,7 +711,10 @@ luaL_register_module(struct lua_State *L, const char *modname,
luaL_register(L, NULL, methods);
}
/* Maximum integer that fits to double (1LL<<52) */
/*
* Maximum integer that doesn't lose precision on tostring() conversion.
* Lua uses sprintf("%.14g") to format its numbers, see gh-1279.
*/
#define DBL_INT_MAX (1e14 - 1)
#define DBL_INT_MIN (-1e14 + 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment