Port bitop to 5.3?

  • From: Daurnimator <quae@xxxxxxxxxxxxxxx>
  • To: web-08@xxxxxxxxxx, luajit@xxxxxxxxxxxxx
  • Date: Sat, 14 Mar 2015 21:28:37 -0400

Hi Mike,

Do you have any plans to port luabitop to 5.3?
Currently if you try and compile it, you get an error:

gcc -O2 -fPIC -I/usr/local/include -c bit.c -o bit.o
bit.c: In function ‘barg’:
bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h"

Personally, I don't actually need it; except to solve a packaging
headache I currently have (
https://github.com/keplerproject/luarocks/issues/320 ).
But it looks like it should be a very simple effort:
  - use lua_isinteger to know whether to use the double 'trick' or not
  - use lua_pushinteger in BRET

Regards,
Daurn.

Other related posts: