0
0
Fork 0
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:
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: 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);