Skip to content

Commit 49c1944

Browse files
Merge pull request #162 from uniment/master
run string macros at compile, not runtime
2 parents 8706c50 + b4cc725 commit 49c1944

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/type/parse.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
end
88

99
macro df64_str(val::AbstractString)
10-
:(Double64($val))
10+
Double64(val)
1111
end
1212

1313
@inline function Double32(str::S) where {S<:AbstractString}
@@ -19,7 +19,7 @@ end
1919
end
2020

2121
macro df32_str(val::AbstractString)
22-
:(Double32($val))
22+
Double32(val)
2323
end
2424

2525
@inline function Double16(str::S) where {S<:AbstractString}
@@ -31,7 +31,7 @@ end
3131
end
3232

3333
macro df16_str(val::AbstractString)
34-
:(Double16($val))
34+
Double16(val)
3535
end
3636

3737
function tryparse(::Type{DoubleFloat{Float64}}, str::S; base::Int=10) where {S<:AbstractString}

0 commit comments

Comments
 (0)