From e5e1fa5ff66018a9d77971fb2a9599bdd262848b Mon Sep 17 00:00:00 2001 From: Arhik Date: Tue, 20 Jan 2026 00:30:20 +0530 Subject: [PATCH] Remove Int64 from encode_signed_varint! signature - Int64 causes InexactError when passed to UInt64(value) - Zigzag-encoded values and float bits are always unsigned integers - Fixes potential runtime error in bytecode encoding --- src/bytecode/writer.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bytecode/writer.jl b/src/bytecode/writer.jl index eb87585..e471de5 100644 --- a/src/bytecode/writer.jl +++ b/src/bytecode/writer.jl @@ -296,7 +296,7 @@ end Encode a signed integer as a variable-length integer. Uses zigzag encoding for signed values. """ -function encode_signed_varint!(buf::Vector{UInt8}, value::Union{UInt16, UInt32, UInt64, Int64}) +function encode_signed_varint!(buf::Vector{UInt8}, value::Union{UInt16, UInt32, UInt64}) # For float bits, encode as unsigned varint encode_varint!(buf, UInt64(value)) end