Skip to content

Commit 1e1745e

Browse files
committed
Use RbPtr_true and RbPtr_false
1 parent 89e3830 commit 1e1745e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RbCall.jl/src/conversion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
RubyObject(::Nothing) = RubyObject(RbPtr_Qnil)
99

10-
RubyObject(b::Bool) = RubyObject(RbPtr(b ? RUBY_Qtrue : RUBY_Qfalse))
10+
RubyObject(b::Bool) = RubyObject(b ? RbPtr_Qtrue : RbPtr_Qfalse)
1111

1212
RubyObject(i::Int8) = RubyObject(RB_INT2FIX(Cint(i)))
1313
RubyObject(i::UInt8) = RubyObject(RB_INT2FIX(Cint(i)))

0 commit comments

Comments
 (0)