lua-users home
lua-l archive

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


Compiling as C++ with VC6 and VC9 after making windows.h a conditional include and hacling bitlib I get:

VC6
---

lapi.c
D:\lua\lua-5.2.0-work1\src\lapi.c(303) : error C2664: 'luaV_arith' : cannot convert parameter 5 from 'int' to 'TMS' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

lcode.c
D:\lua\lua-5.2.0-work1\src\lcode.c(833) : error C2664: 'codearith' : cannot convert parameter 2 from 'int' to 'OpCode' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) D:\lua\lua-5.2.0-work1\src\lcode.c(837) : error C2664: 'codecomp' : cannot convert parameter 2 from 'int' to 'OpCode' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) D:\lua\lua-5.2.0-work1\src\lcode.c(841) : error C2664: 'codecomp' : cannot convert parameter 2 from 'int' to 'OpCode' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
ldebug.c
D:\lua\lua-5.2.0-work1\src\ldebug.c(206) : warning C4244: '=' : conversion from 'int' to 'char', possible loss of data D:\lua\lua-5.2.0-work1\src\ldebug.c(366) : error C2440: 'initializing' : cannot convert from 'const int' to 'TMS' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
ldo.c
D:\lua\lua-5.2.0-work1\src\ldo.c(302) : warning C4244: '=' : conversion from 'int' to 'short', possible loss of data D:\lua\lua-5.2.0-work1\src\ldo.c(412) : warning C4244: '=' : conversion from 'long' to 'unsigned char', possible loss of data D:\lua\lua-5.2.0-work1\src\ldo.c(464) : warning C4244: '=' : conversion from 'int' to 'unsigned char', possible loss of data
lgc.c
D:\lua\lua-5.2.0-work1\src\lgc.c(129) : warning C4244: '=' : conversion from 'int' to 'unsigned char', possible loss of data D:\lua\lua-5.2.0-work1\src\lgc.c(813) : warning C4244: '=' : conversion from 'int' to 'unsigned char', possible loss of data
lparser.c
D:\lua\lua-5.2.0-work1\src\lparser.c(1285) : warning C4244: '=' : conversion from 'int' to 'unsigned char', possible loss of data D:\lua\lua-5.2.0-work1\src\lparser.c(1291) : warning C4244: '=' : conversion from 'int' to 'unsigned char', possible loss of data
lundump.c
D:\lua\lua-5.2.0-work1\src\lundump.c(125) : warning C4127: conditional expression is constant D:\lua\lua-5.2.0-work1\src\lundump.c(145) : warning C4244: '=' : conversion from 'int' to 'unsigned char', possible loss of data D:\lua\lua-5.2.0-work1\src\lundump.c(146) : warning C4244: '=' : conversion from 'int' to 'unsigned char', possible loss of data


VC9
---

1>lapi.c
1>..\lua-5.2.0-work1\src\lapi.c(303) : error C2664: 'luaV_arith' : cannot convert parameter 5 from 'int' to 'TMS' 1> Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

1>lcode.c
1>..\lua-5.2.0-work1\src\lcode.c(833) : error C2664: 'codearith' : cannot convert parameter 2 from 'int' to 'OpCode' 1> Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) 1>..\lua-5.2.0-work1\src\lcode.c(837) : error C2664: 'codecomp' : cannot convert parameter 2 from 'int' to 'OpCode' 1> Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) 1>..\lua-5.2.0-work1\src\lcode.c(841) : error C2664: 'codecomp' : cannot convert parameter 2 from 'int' to 'OpCode' 1> Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

1>lundump.c
1>..\lua-5.2.0-work1\src\lundump.c(125) : warning C4127: conditional expression is constant 1>..\lua-5.2.0-work1\src\lundump.c(145) : warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data 1>..\lua-5.2.0-work1\src\lundump.c(146) : warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data


1>lparser.c
1>..\lua-5.2.0-work1\src\lparser.c(1285) : warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data 1>..\lua-5.2.0-work1\src\lparser.c(1291) : warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data


1>lgc.c
1>..\lua-5.2.0-work1\src\lgc.c(129) : warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data

1>ldo.c
1>..\lua-5.2.0-work1\src\ldo.c(302) : warning C4244: '=' : conversion from 'int' to 'short', possible loss of data 1>..\lua-5.2.0-work1\src\ldo.c(464) : warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data
1>ldebug.c
1>..\lua-5.2.0-work1\src\ldebug.c(366) : error C2440: 'initializing' : cannot convert from 'int' to 'TMS' 1> Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)