lua-users home
lua-l archive

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


I can't work out where to report this problem so the list can have it.

The variant of lua sqlite wrapper
http://lua.sqlite.org/index.cgi/index

Code is written in C++ not C.

file lsqlite3.c
line 1272
lua_Number n = (lua_Number)rowid;

A solution is to add a local block (scope) so that variable declaration
is in an allowed location.
Insert { at line 1271
Insert } at the end of the following dangling if else

It then compiles and the resultant binary has so far operated successfully.