Skip to content

Commit 5dd10f6

Browse files
author
Ben Baumgold
committed
#64 trunc to Int128
1 parent 51a9800 commit 5dd10f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableView.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function table2json(schema, rows, types; requested = nothing)
264264
columnwriter = JSON.Writer.CompactContext(io)
265265
JSON.begin_object(columnwriter)
266266
Tables.eachcolumn(schema, row) do val, ind, name
267-
if val isa Real && isfinite(val) && -js_max_safe_int < val < js_max_safe_int
267+
if val isa Real && isfinite(val) && -js_max_safe_int < trunc(Int128, val) < js_max_safe_int
268268
JSON.show_pair(columnwriter, ser, name, val)
269269
elseif val === nothing || val === missing
270270
JSON.show_pair(columnwriter, ser, name, repr(val))

0 commit comments

Comments
 (0)