diff options
-rw-r--r-- | lib/ubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ uc_blob_to_json(uc_vm_t *vm, struct blob_attr *attr, bool table, const char **na return ucv_int64_new((int32_t)be32_to_cpu(*(uint32_t *)data)); case BLOBMSG_TYPE_INT64: - return ucv_uint64_new(be64_to_cpu(*(uint64_t *)data)); + return ucv_int64_new((int64_t)be64_to_cpu(*(uint64_t *)data)); case BLOBMSG_TYPE_DOUBLE: ; |