mirror of
https://github.com/emqx/neuron.git
synced 2026-10-25 11:26:32 +08:00
fix write tag in arm64
This commit is contained in:
@@ -585,9 +585,9 @@ static void cal_decimal(neu_type_e tag_type, neu_type_e value_type,
|
||||
case NEU_TYPE_LWORD:
|
||||
case NEU_TYPE_DWORD:
|
||||
if (value_type == NEU_TYPE_INT64 || value_type == NEU_TYPE_LWORD) {
|
||||
value->u64 = value->u64 / decimal;
|
||||
value->d64 = value->d64 / decimal;
|
||||
} else if (value_type == NEU_TYPE_DOUBLE) {
|
||||
value->u64 = (uint64_t) round(value->d64 / decimal);
|
||||
value->d64 = (int64_t) round(value->d64 / decimal);
|
||||
}
|
||||
break;
|
||||
case NEU_TYPE_FLOAT:
|
||||
|
||||
Reference in New Issue
Block a user