We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 815d1bd commit 841bd33Copy full SHA for 841bd33
tests/conversion.rs
@@ -375,10 +375,12 @@ fn test_float_from_lua() -> Result<()> {
375
// Negative zero
376
let negative_zero = lua.load("return -0.0").eval::<f64>()?;
377
assert_eq!(negative_zero, 0.0);
378
+ // LuaJIT treats -0.0 as a positive zero
379
+ #[cfg(not(feature = "luajit"))]
380
assert!(negative_zero.is_sign_negative());
381
382
// In Lua <5.3 all numbers are floats
- #[cfg(not(any(feature = "lua54", feature = "lua53")))]
383
+ #[cfg(not(any(feature = "lua54", feature = "lua53", feature = "luajit")))]
384
{
385
let negative_zero = lua.load("return -0").eval::<f64>()?;
386
0 commit comments