Merge pull request #2108 from hxy7yx/v2.8-2

[v2.8]rename precision when read floating-tag
This commit is contained in:
fengzeroz
2024-06-18 13:59:12 +08:00
committed by GitHub
+2 -2
View File
@@ -61,7 +61,7 @@ int neu_json_encode_read_resp(void *json_object, void *param)
if (p_tag->t == NEU_JSON_FLOAT || p_tag->t == NEU_JSON_DOUBLE) {
if_precision = 1;
tag_elems[2].name = "precision";
tag_elems[2].name = "transferPrecision";
tag_elems[2].t = NEU_JSON_INT;
tag_elems[2].v.val_int =
p_tag->precision > 0 ? p_tag->precision : 1;
@@ -143,7 +143,7 @@ int neu_json_encode_read_paginate_resp(void *json_object, void *param)
if (p_tag->t == NEU_JSON_FLOAT || p_tag->t == NEU_JSON_DOUBLE) {
if_precision = 1;
tag_elems[8].name = "precision";
tag_elems[8].name = "transferPrecision";
tag_elems[8].t = NEU_JSON_INT;
tag_elems[8].v.val_int =
p_tag->precision > 0 ? p_tag->precision : 1;