Skip to content

Commit 6bf7194

Browse files
authored
Merge pull request #9 from mauritsd/pull-request/00353580
The return type from the print helper function should be Void, not Bool.
2 parents 618b160 + 0035358 commit 6bf7194

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/LIBLINEAR.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ let liblinear = C_NULL
8383
end
8484

8585
# helper
86-
linear_print(str::Ptr{UInt8}) = verbosity && print(unsafe_string(str))
86+
function linear_print(str::Ptr{UInt8})
87+
if verbosity
88+
print(unsafe_string(str))
89+
end
90+
nothing
91+
end
8792

8893
macro cachedsym(symname)
8994
cached = gensym()

0 commit comments

Comments
 (0)