From ce4c5e23d456446e11b6a585c7d3e15ee1ef7bd1 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Sun, 24 Aug 2025 22:58:33 +0800 Subject: [PATCH] upgrade version to 1.0.79 --- libfastcommon.spec | 2 +- src/fast_buffer.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libfastcommon.spec b/libfastcommon.spec index 13128a8..98df5f9 100644 --- a/libfastcommon.spec +++ b/libfastcommon.spec @@ -3,7 +3,7 @@ %define CommitVersion %(echo $COMMIT_VERSION) Name: libfastcommon -Version: 1.0.78 +Version: 1.0.79 Release: 1%{?dist} Summary: c common functions library extracted from my open source projects FastDFS License: LGPL diff --git a/src/fast_buffer.h b/src/fast_buffer.h index 65800c2..9fdead2 100644 --- a/src/fast_buffer.h +++ b/src/fast_buffer.h @@ -115,7 +115,7 @@ static inline int fast_buffer_append_char(FastBuffer *buffer, const char ch) return 0; } -static inline int fast_buffer_append_int(FastBuffer *buffer, const int n) +static inline int fast_buffer_append_int32(FastBuffer *buffer, const int n) { int result; @@ -143,6 +143,9 @@ static inline int fast_buffer_append_int64(FastBuffer *buffer, const int64_t n) return 0; } +#define fast_buffer_append_int(buffer, n) \ + fast_buffer_append_int64(buffer, n) + int fast_buffer_append_file(FastBuffer *buffer, const char *filename); static inline int fast_buffer_append_string(FastBuffer *buffer, const char *str)