Mercurial > hg > orthanc-stone
changeset 798:11fc84650e4b
truncation warning
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 28 May 2019 14:13:10 +0200 |
parents | bc20e4c417ec |
children | a6ba676a93e2 |
files | Framework/Scene2D/LookupTableTextureSceneLayer.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Scene2D/LookupTableTextureSceneLayer.cpp Tue May 28 13:02:56 2019 +0200 +++ b/Framework/Scene2D/LookupTableTextureSceneLayer.cpp Tue May 28 14:13:10 2019 +0200 @@ -63,9 +63,9 @@ for (size_t i = 0; i < 256; i++) { - rgb[3 * i] = i; - rgb[3 * i + 1] = i; - rgb[3 * i + 2] = i; + rgb[3 * i] = static_cast<uint8_t>(i); + rgb[3 * i + 1] = static_cast<uint8_t>(i); + rgb[3 * i + 2] = static_cast<uint8_t>(i); } SetLookupTableRgb(rgb);