Skip to content

Commit 4c8ba0a

Browse files
committed
Don't use IntDomTuple.of_const for non-program constants
1 parent ce62c97 commit 4c8ba0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdomains/unionFind.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ module T = struct
226226
let offset_to_index ?typ offset =
227227
let ptr_diff_ikind = Cilfacade.ptrdiff_ikind () in
228228
let offset_in_bytes = PreValueDomain.Offs.to_index ?typ offset in
229-
let bytes_to_bits = IntDomain.of_const (Z.of_int 8, ptr_diff_ikind, None) in
229+
let bytes_to_bits = IntDomain.IntDomTuple.of_int ptr_diff_ikind (Z.of_int 8) in
230230
IntDomain.IntDomTuple.mul bytes_to_bits offset_in_bytes
231231

232232
(** Convert a Cil offset to an integer offset. *)

0 commit comments

Comments
 (0)