Page MenuHomeFreeBSD

contrib/lua: Hack around overflow issues
AbandonedPublic

Authored by kevans on Aug 13 2018, 3:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 1 2024, 2:15 AM
Unknown Object (File)
Dec 13 2023, 1:10 AM
Unknown Object (File)
Sep 23 2023, 6:40 PM
Unknown Object (File)
Apr 20 2023, 3:15 AM
Unknown Object (File)
Jan 5 2023, 9:28 AM

Details

Reviewers
imp
Summary

These hacks will go away when we can update to 5.4, after its release. GCC 4.2 on 64-bit archs fails for these -cast_num(LUA_MININTEGER) bits, despite them being likely harmless and definitely intentional.

Since these functions are for float comparisons anyways, and our float is actually an integer, this should still be effectively a nop.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 18769

Event Timeline

stand/liblua/luaconf.h
453

jhibbits points out that I likely wanted another level of parentheses here... this can be fixed before commit, depending on how we want to go about this.

I think that https://reviews.freebsd.org/P206 addresses the 'bogus' issues, as well as fixing some new whines that my mips build is showing.
Comments?

contrib/lua/src/lvm.c
282

I think this is bogus.

305

Ditto.

stand/liblua/luaconf.h
453

I think it's fine as is, but I'm not fussy.