Skip to content

Commit 0a55d1e

Browse files
authored
Merge pull request #24 from rtjoa/patch-1
Convert ptr to `UInt` instead of `Int` in missing C macros
2 parents 218da4d + 9d1c05a commit 0a55d1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CUDD.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ include(joinpath(@__DIR__, "gen", "libcudd_api.jl"))
1010
# Missing C macros omitted by Clang.jl
1111

1212
Cudd_Not(node) =
13-
convert(Ptr{Nothing}, xor(convert(Int,node), 1))
13+
convert(Ptr{Nothing}, xor(convert(UInt,node), 1))
1414

1515
Cudd_IsComplement(node) =
16-
isone(convert(Int,node) & 1)
16+
isone(convert(UInt,node) & 1)
1717

1818
Cudd_Regular(node) =
19-
convert(Ptr{Nothing}, convert(Int,node) & ~1)
19+
convert(Ptr{Nothing}, convert(UInt,node) & ~1)
2020

2121
# export everything
2222
foreach(names(@__MODULE__, all=true)) do s

0 commit comments

Comments
 (0)