Skip to content

Commit 1123351

Browse files
committed
0.4 compat updates
1 parent adfc7d5 commit 1123351

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SQLite.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ export Data
77

88
if !isdefined(Core, :String)
99
typealias String UTF8String
10-
unsafe_string(ptr, len) = bytestring(ptr, len)
1110
end
1211

1312
if Base.VERSION < v"0.5.0-dev+4631"
13+
unsafe_string = bytestring
1414
unsafe_wrap{A<:Array}(::Type{A}, ptr, len) = pointer_to_array(ptr, len)
15-
unsafe_string(ptr, len) = utf8(ptr, len)
1615
unsafe_wrap(::Type{String}, ptr, len) = unsafe_string(ptr, len)
1716
end
1817

0 commit comments

Comments
 (0)