From 35db05a99eb9b7f9cfc5b43737518cf6a0f1e3d4 Mon Sep 17 00:00:00 2001 From: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:57:35 +0800 Subject: [PATCH] chore: fix compiler errors --- src/protobuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protobuf.h b/src/protobuf.h index 4568ea9..8186ddc 100644 --- a/src/protobuf.h +++ b/src/protobuf.h @@ -73,7 +73,7 @@ void bytelizer_put_pbstruct(bytelizer_ctx_t* ctx, const bytelizer_pbfield_t* pbr * @param _val the value of the field */ #define PB_FLOAT(_tag, _name, _val) \ - PB_FIXED32(_tag, _name, (*(uint32_t *)_val)); + PB_FIXED32(_tag, _name, (*(uint32_t *)_val)) /** * @brief define a double field @@ -82,7 +82,7 @@ void bytelizer_put_pbstruct(bytelizer_ctx_t* ctx, const bytelizer_pbfield_t* pbr * @param _val the value of the field */ #define PB_DOUBLE(_tag, _name, _val) \ - PB_FIXED64(_tag, _name, (*(uint64_t *)_val)); + PB_FIXED64(_tag, _name, (*(uint64_t *)_val)) /** * @brief define a string field