[aseprite] 266/308: Fix warning in doc::write_string()

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:45:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 2da643ef56e99634bb8df54dbe877e26a9ba211d
Author: David Capello <davidcapello at gmail.com>
Date:   Fri Feb 26 10:09:03 2016 -0300

    Fix warning in doc::write_string()
---
 src/doc/string_io.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/doc/string_io.cpp b/src/doc/string_io.cpp
index 877d2ee..1d29d61 100644
--- a/src/doc/string_io.cpp
+++ b/src/doc/string_io.cpp
@@ -1,5 +1,5 @@
 // Aseprite Document Library
-// Copyright (c) 2001-2015 David Capello
+// Copyright (c) 2001-2016 David Capello
 //
 // This file is released under the terms of the MIT license.
 // Read LICENSE.txt for more information.
@@ -22,7 +22,7 @@ using namespace base::serialization::little_endian;
 
 void write_string(std::ostream& os, const std::string& str)
 {
-  write16(os, (int)str.size());
+  write16(os, (uint16_t)str.size());
   if (!str.empty())
     os.write(str.c_str(), str.size());
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list