lua-users home
lua-l archive

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

Hello together

on some wiches we have Open the Documentation for using LUA with an VisionServer. (in German an translator we need)

The integrated Editor and Debugger is usefull to test LUA Stuff easy with our WebCam.

For this documentation i will inform the reader about what can LUA external Librarys do.

Question : Give it an OpenCV Support that would be funny ?

Karsten Schulz

-----Ursprüngliche Nachricht----- From: Roberto Ierusalimschy
Sent: Monday, December 15, 2014 4:44 PM
To: Lua mailing list
Subject: Re: [ANN] Lua 5.3.0 (rc0) now available

> lobject.c:327:5: warning: format '%d' expects argument of type 'int', > but argume
> nt 3 has type 'lua_Integer' [-Wformat=]
>      len = lua_integer2str(buff, ivalue(obj));
>      ^
> [...]
> liolib.c:612:17: warning: format '%d' expects argument of type 'int', > but argume
> nt 3 has type 'lua_Integer' [-Wformat=]
>                  ? fprintf(f, LUA_INTEGER_FMT, lua_tointeger(L, arg))
>                  ^
> [...]
> luac.c:269:2: warning: format '%d' expects argument of type 'int', but > argument
> 2 has type 'lua_Integer' [-Wformat=]
>   printf(LUA_INTEGER_FMT,ivalue(o));
>   ^
> [...]

All three warnings are about the same issue. Can you make your code
print the value of LUA_INTEGER_FMT (a string)? It should be "%I64d", not
"%d".  (Just in case, print also the value of macro LUA_INTEGER_FRMLEN,
another string.)

This whole thing is weird, because this code should give a warning
in all other platforms, too...

Does that compiler define _WIN32? If not, try defining LUA_USE_WINDOWS...

-- Roberto