Skip to content

Commit

Permalink
chore: fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSnowfield committed Aug 8, 2024
1 parent 7fb90e0 commit 35db05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protobuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 35db05a

Please sign in to comment.