Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ rust-version = "1.88"
[dependencies]
simdutf8 = { version = "0.1.4", features = ["public_imp", "aarch64_neon"] }

value-trait = { version = "0.11" }
value-trait = { version = "0.12" }
beef = { version = "0.5", optional = true }
halfbrown = "0.3"
halfbrown = "0.4"
# ahash known key
once_cell = { version = "1.21", optional = true }
ahash = { version = "0.8", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/impls/neon/stage1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl Stage1Parse for SimdInput {
base.reserve(64);
let final_len = l + cnt;

let is_unaligned = l % 4 != 0;
let is_unaligned = !l.is_multiple_of(4);
let write_fn = if is_unaligned {
std::ptr::write_unaligned
} else {
Expand Down
10 changes: 0 additions & 10 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1248,16 +1248,6 @@ macro_rules! static_cast_i64 {
}
pub(crate) use static_cast_i64;

/// static cast to an i64
#[cfg(all(feature = "approx-number-parsing", feature = "i128"))]
macro_rules! static_cast_i128 {
($v:expr_2021) => {
::std::mem::transmute::<_, i128>($v)
};
}
#[cfg(all(feature = "approx-number-parsing", feature = "i128"))]
pub(crate) use static_cast_i128;

/// static cast to an u64
macro_rules! static_cast_u64 {
($v:expr_2021) => {
Expand Down
2 changes: 1 addition & 1 deletion src/numberparse/approx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl Deserializer<'_> {
ErrorType::InvalidNumber,
))
} else if negative {
let i = unsafe { static_cast_i128!(i.wrapping_neg()) };
let i: i128 = i.wrapping_neg().cast_signed();
if let Ok(i) = i64::try_from(i) {
Ok(StaticNode::I64(i))
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fn silly_float1() {
}

#[test]
#[ignore]
#[ignore = "serde is less precise on this test"]
fn silly_float2() {
let v = Value::from(-6.990_585_694_841_803e305);
let s = v.encode();
Expand Down
3 changes: 1 addition & 2 deletions src/tests/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,7 @@ fn float1() {
assert_eq!(v_simd, v_serde);
}

// We ignore this since serde is less precise on this test
#[ignore]
#[ignore = "We ignore this since serde is less precise on this test"]
#[test]
fn float2() {
let mut d = String::from("-4.5512678569607477e306");
Expand Down
Loading