lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I have checked 100k Lua source and see a few errors (sometimes crash).

One subtle error :

* In Lua script:

	local cx = 3
	local x
	....
	x = cx /2


* In C++, reading x

	...
	// crash here, because now x is float (double)
	int x = (int)luaL_checkinteger(L, -1);
	...

I don't know what is the best solution.
Actually I try to replace all '/' with '//' where I want integer division.

Charles




-----Message d'origine-----
De : lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] De la
part de Luiz Henrique de Figueiredo
Envoyé : mardi 16 décembre 2014 18:30
À : lua-l@lists.lua.org
Objet : [ANN] Lua 5.3.0 (rc1) now available

Lua 5.3.0 (rc1) is now available for testing at
[...]