Skip to content

Commit

Permalink
Fix return type of git_blob_is_binary() (#20272)
Browse files Browse the repository at this point in the history
This triggered a failure in the libgit2 blobs test on i686 when building
RPM nightlies. I don't understand why this error does not happen on CI.
  • Loading branch information
nalimilan authored and simonbyrne committed Jan 28, 2017
1 parent fcc4d89 commit 34d0f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/libgit2/blob.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ looking for a reasonable ratio of printable to non-printable characters among
the first 8000 bytes.
"""
function isbinary(blob::GitBlob)
bin_flag = ccall((:git_blob_is_binary, :libgit2), Int64, (Ptr{Void},), blob.ptr)
bin_flag = ccall((:git_blob_is_binary, :libgit2), Cint, (Ptr{Void},), blob.ptr)
return bin_flag == 1
end

Expand Down

0 comments on commit 34d0f15

Please sign in to comment.