0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-01 01:28:54 +02:00

ircd::json::tuple: Fix type=NUMBER serial=true tuple assignment.

This commit is contained in:
Jason Volk 2020-04-22 04:47:54 -07:00
parent 0a4bec978c
commit cbce88e34e

View file

@ -198,7 +198,9 @@ set(tuple<T...> &t,
case type::NUMBER:
{
if(value.floats)
if(value.serial)
set(t, key, string_view{value});
else if(value.floats)
set(t, key, value.floating);
else
set(t, key, value.integer);