• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

grondo / lua-affinity / 14
95%

Build:
DEFAULT BRANCH: master
Ran 01 Dec 2017 04:46PM UTC
Jobs 2
Files 3
Run time 33s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
14

Pull #3

travis-ci

web-flow
lua-affinity: improve overflow detection

Problem: lua-affinity overflow test fails on 32-bit i686
system, returning 0xff instead of an overflow value.

On this system MAX_LUAINT is 0xfffff0 (2^24 - 16).
The overflow test value is 0xffffffffffffffff (2^64 - 1).
Overflow occurs if the lua_tointeger() >= MAX_LUAINT.

The lua5.1 documentation says of lua_tointeger() that
"if the a number is not an integer it is truncated
in some unspecified way".

Assuming a number that is too large to represent as
an integer might be considered "not an integer",
perhaps that explains the odd result of 0xff?

Since lua_tonumber() returns a double with greater
range than lua_tointeger(), add a check that the
two functions return equal values.  They should
match if the number is a valid integer.
Pull Request #3: lua-affinity: improve overflow detection

1 of 1 new or added line in 1 file covered. (100.0%)

434 of 456 relevant lines covered (95.18%)

7677.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14.1 (LUA=lua5.1) 01 Dec 2017 04:47PM UTC 0
95.18
Travis Job 14.1
2 14.2 (LUA=lua5.2) 01 Dec 2017 04:46PM UTC 0
95.29
Travis Job 14.2
Source Files on build 14
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #14
  • Pull Request #3
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc