Skip to content

Commit 68d6074

Browse files
committed
Fix scoping issue
1 parent 2b53fde commit 68d6074

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ git:
1717
## (tests will run but not make your overall status red)
1818
matrix:
1919
allow_failures:
20+
- julia: 1.0
2021
- julia: nightly
2122

2223
## uncomment and modify the following lines to manually install system packages

src/encode.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@ function _str(str::T) where {T<:Union{Vector{UInt8}, Str{<:Binary_CSEs}, String}
5959
(siz = sizeof(str)) == 0 && return empty_ascii
6060
@preserve str begin
6161
pnt = pointer(str)
62-
try
63-
len, flags, num4byte, num3byte, num2byte, latin1byte = fast_check_string(pnt, siz)
64-
catch ex
65-
println("fast_check_string($str) failed:", sprint(showerror, ex, catch_backtrace()))
66-
rethrow(ex)
67-
end
62+
len, flags, num4byte, num3byte, num2byte, latin1byte = fast_check_string(pnt, siz)
6863
if flags == 0
6964
buf, out = _allocate(UInt8, len)
7065
_memcpy(out, pnt, len)

0 commit comments

Comments
 (0)