[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10285: Fix warning (assigning -1 to
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10285: Fix warning (assigning -1 to unsigned int). |
Date: |
Sun, 16 Nov 2008 01:32:40 +0100 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 10285
committer: Bastiaan Jacques <address@hidden>
branch nick: trunk
timestamp: Sun 2008-11-16 01:32:40 +0100
message:
Fix warning (assigning -1 to unsigned int).
modified:
libbase/utf8.h
=== modified file 'libbase/utf8.h'
--- a/libbase/utf8.h 2008-10-15 02:51:58 +0000
+++ b/libbase/utf8.h 2008-11-16 00:32:40 +0000
@@ -24,6 +24,7 @@
#include "dsodefs.h" // For DSOEXPORT
#include <string>
#include <boost/cstdint.hpp> // for C99 int types
+#include <limits>
/// Utilities to convert between std::string and std::wstring.
//
@@ -53,7 +54,7 @@
/// gnash::edit_text_character, ord() and chr().
namespace utf8
{
- static const boost::uint32_t invalid = -1;
+ static const boost::uint32_t invalid =
std::numeric_limits<boost::uint32_t>::max();
/// Converts a std::string with multibyte characters into a
std::wstring.
//
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10285: Fix warning (assigning -1 to unsigned int).,
Bastiaan Jacques <=