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.
2 parents fdf44d6 + 2312e23 commit 70817afCopy full SHA for 70817af
ml-proto/src/spec/memory.ml
@@ -92,7 +92,8 @@ let load64 mem a =
92
Int64.logor (Int64.of_int32 (load32 mem a)) (Int64.shift_left (Int64.of_int32 (load32 mem (a+4))) 32)
93
94
let store8 mem a bits =
95
- !mem.{a} <- Int32.to_int (Int32.logand bits (Int32.of_int 255))
+ (* Store the lowest 8 bits of "bits" at byte index a, discarding the rest. *)
96
+ !mem.{a} <- Int32.to_int bits
97
98
let store16 mem a bits =
99
store8 mem (a+0) bits;
0 commit comments