[Liblas-commits] hg: qualify integer name

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Aug 26 14:17:57 EDT 2010


changeset fecab7e80f92 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=fecab7e80f92
summary: qualify integer name

diffstat:

 src/lascolor.cpp |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 177b0ad3f290 -r fecab7e80f92 src/lascolor.cpp
--- a/src/lascolor.cpp	Thu Aug 26 12:54:49 2010 -0500
+++ b/src/lascolor.cpp	Thu Aug 26 13:17:50 2010 -0500
@@ -55,9 +55,9 @@
 
 Color::Color(boost::uint32_t red, boost::uint32_t green, boost::uint32_t blue)
 {
-    if (red > std::numeric_limits<uint16_t>::max() || 
-        green > std::numeric_limits<uint16_t>::max() || 
-        blue > std::numeric_limits<uint16_t>::max())
+    if (red > std::numeric_limits<boost::uint16_t>::max() || 
+        green > std::numeric_limits<boost::uint16_t>::max() || 
+        blue > std::numeric_limits<boost::uint16_t>::max())
         throw_invalid_color_component();
 
     m_color[0] = red;
@@ -67,9 +67,9 @@
 
 Color::Color(boost::array<value_type, 3> const& color)
 {
-    if (color[0] > std::numeric_limits<uint16_t>::max() || 
-        color[1] > std::numeric_limits<uint16_t>::max() || 
-        color[2] > std::numeric_limits<uint16_t>::max())
+    if (color[0] > std::numeric_limits<boost::uint16_t>::max() || 
+        color[1] > std::numeric_limits<boost::uint16_t>::max() || 
+        color[2] > std::numeric_limits<boost::uint16_t>::max())
         throw_invalid_color_component();
     m_color = color;
 }


More information about the Liblas-commits mailing list