mirror of
https://github.com/matrix-construct/construct
synced 2024-11-01 03:18:54 +01:00
ircd::json::tuple: Fix type=NUMBER serial=true tuple assignment.
This commit is contained in:
parent
0a4bec978c
commit
cbce88e34e
1 changed files with 3 additions and 1 deletions
|
@ -198,7 +198,9 @@ set(tuple<T...> &t,
|
||||||
|
|
||||||
case type::NUMBER:
|
case type::NUMBER:
|
||||||
{
|
{
|
||||||
if(value.floats)
|
if(value.serial)
|
||||||
|
set(t, key, string_view{value});
|
||||||
|
else if(value.floats)
|
||||||
set(t, key, value.floating);
|
set(t, key, value.floating);
|
||||||
else
|
else
|
||||||
set(t, key, value.integer);
|
set(t, key, value.integer);
|
||||||
|
|
Loading…
Reference in a new issue