This is an automated email from the ASF dual-hosted git repository.

nielsbasjes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new 6459ec00b [C++] Fix compiler warnings
6459ec00b is described below

commit 6459ec00bfd9efcf48dbae0ca7584d1847e85acc
Author: GerritNG <[email protected]>
AuthorDate: Tue Feb 7 13:08:03 2023 -0700

    [C++] Fix compiler warnings
---
 lang/c++/api/buffer/Buffer.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/c++/api/buffer/Buffer.hh b/lang/c++/api/buffer/Buffer.hh
index bc3baf123..45c439d6d 100644
--- a/lang/c++/api/buffer/Buffer.hh
+++ b/lang/c++/api/buffer/Buffer.hh
@@ -145,7 +145,7 @@ public:
      **/
 
     size_type wroteTo(size_type size) {
-        int wrote = 0;
+        size_type wrote = 0;
         if (size) {
             if (size > freeSpace()) {
                 throw std::length_error("Impossible to write more data than 
free space");

Reply via email to