Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Feb 20, 2025
1 parent 4602a8f commit a78a053
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
11 changes: 9 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ unicode-width = "0.1"
everscale-types = { version = "0.1.2", default-features = false }

[patch.crates-io]
everscale-types = { git = "https://github.com/broxus/everscale-types.git", rev = "69c344eac4e1f95d66b045ae90db904ad8afdfaf" }
everscale-types = { git = "https://github.com/broxus/everscale-types.git", rev = "9dcfe1aa2ebeca82428cc860267653ec8036725e" }
12 changes: 6 additions & 6 deletions asm/src/asm/opcodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ fn op_stsliceconst(ctx: &mut Context, instr: &ast::Instr<'_>) -> Result<(), AsmE
b.store_bit_one()?;
b.store_small_uint(refs, 2)?;
b.store_small_uint(l as u8, 3)?;
b.store_slice(c.as_slice_allow_pruned())?;
b.store_slice(c.as_slice_allow_exotic())?;
write_slice_padding(padding, b)
}
}
Expand Down Expand Up @@ -1487,7 +1487,7 @@ fn write_pushslice(ctx: &mut Context, c: Cell) -> Result<(), Error> {
let b = ctx.get_builder_ext(8 + 4 + bits + padding, refs + 1);
b.store_u8(0x8b)?;
b.store_small_uint(l as u8, 4)?;
b.store_slice(c.as_slice_allow_pruned())?;
b.store_slice(c.as_slice_allow_exotic())?;
write_slice_padding(padding, b)
} else if bits <= 248 && refs >= 1 {
let l = (bits + 7) / 8;
Expand All @@ -1496,7 +1496,7 @@ fn write_pushslice(ctx: &mut Context, c: Cell) -> Result<(), Error> {
b.store_u8(0x8c)?;
b.store_small_uint(refs - 1, 2)?;
b.store_small_uint(l as u8, 5)?;
b.store_slice(c.as_slice_allow_pruned())?;
b.store_slice(c.as_slice_allow_exotic())?;
write_slice_padding(padding, b)
} else {
let l = (bits + 2) / 8;
Expand All @@ -1505,7 +1505,7 @@ fn write_pushslice(ctx: &mut Context, c: Cell) -> Result<(), Error> {
b.store_u8(0x8d)?;
b.store_small_uint(refs, 3)?;
b.store_small_uint(l as u8, 7)?;
b.store_slice(c.as_slice_allow_pruned())?;
b.store_slice(c.as_slice_allow_exotic())?;
write_slice_padding(padding, b)
}
}
Expand Down Expand Up @@ -1534,11 +1534,11 @@ fn op_pushcont(ctx: &mut Context, instr: &ast::Instr<'_>) -> Result<(), AsmError
} else if bits <= 120 && refs == 0 {
let b = ctx.get_builder(8 + bits);
b.store_u8(0x90 | (bits / 8) as u8)?;
b.store_slice(c.as_slice_allow_pruned())
b.store_slice(c.as_slice_allow_exotic())
} else {
let b = ctx.get_builder_ext(16 + bits, refs + 1);
b.store_u16(0x8e00 | ((refs as u16) << 7) | (bits / 8))?;
b.store_slice(c.as_slice_allow_pruned())
b.store_slice(c.as_slice_allow_exotic())
}
}

Expand Down
2 changes: 1 addition & 1 deletion asm/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ fn nat<'a>() -> impl Parser<'a, &'a str, BigInt, extra::Err<ParserError>> + Clon

let number = choice((
just("0x")
.ignore_then(num_slice.clone())
.ignore_then(num_slice)
.try_map(|s, span| parse_int(s, 16, span)),
just("0b")
.ignore_then(num_slice)
Expand Down
2 changes: 1 addition & 1 deletion asm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ mod tests {
#[test]
fn stsliceconst() -> anyhow::Result<()> {
let code = Code::assemble("STSLICECONST x{cf_}")?;
assert_eq!(code.as_slice_allow_pruned().load_uint(24)?, 0xcf873c);
assert_eq!(code.as_slice_allow_exotic().load_uint(24)?, 0xcf873c);
Ok(())
}
}

0 comments on commit a78a053

Please sign in to comment.