Skip to content

Commit 6352c4b

Browse files
authored
Fix OncePerTask usage with datatypes for --trim (#197)
* Fix `OncePerTask` usage with datatypes for --trim * Set version to 2.8.3
1 parent 1a13035 commit 6352c4b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Parsers"
22
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
33
authors = ["quinnj <quinn.jacobd@gmail.com>"]
4-
version = "2.8.2"
4+
version = "2.8.3"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

src/Parsers.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ end
496496

497497
if isdefined(Base, :OncePerTask)
498498
const _get_bigint = OncePerTask{BigInt}(() -> BigInt(; nbits=256))
499-
const _get_bigfloats = OncePerTask{BigFloat}(BigFloat)
499+
# Note: This uses `() -> BigFloat()` instead of just `BigFloat` for --trim compatibility
500+
const _get_bigfloats = OncePerTask{BigFloat}(() -> BigFloat())
500501
else
501502
# N.B This code is not thread safe in the presence of thread migration
502503
const BIGINT = BigInt[]

0 commit comments

Comments
 (0)