[Liblas-commits] hg: cast down the scale value to
liblas::Color::value_type too i...
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Dec 15 13:04:44 EST 2010
changeset a878e73cb469 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=a878e73cb469
summary: cast down the scale value to liblas::Color::value_type too if we're multiplying by a scale value
diffstat:
src/lastransform.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 67d41fb12bcb -r a878e73cb469 src/lastransform.cpp
--- a/src/lastransform.cpp Wed Dec 15 11:57:28 2010 -0600
+++ b/src/lastransform.cpp Wed Dec 15 12:04:37 2010 -0600
@@ -508,7 +508,7 @@
{
color[i] = static_cast<liblas::Color::value_type>(pix[0]);
if (m_scale) {
- color[i] = color[i] * m_scale;
+ color[i] = color[i] * static_cast<liblas::Color::value_type>(m_scale);
}
}
}
More information about the Liblas-commits
mailing list