summary refs log blame commit diff
path: root/pkgs/applications/graphics/photivo/gcc6.patch
blob: e2eb795fc8e2c144b91efda94927c364284b9eff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                        
diff --git c/Sources/ptImage.cpp i/Sources/ptImage.cpp
index 9c95093..623c157 100755
--- c/Sources/ptImage.cpp
+++ i/Sources/ptImage.cpp
@@ -5291,7 +5291,7 @@ ptImage* ptImage::Box(const uint16_t MaxRadius, float* Mask) {
         NewRow = NewRow < 0? -NewRow : NewRow > Height1? Height1_2-NewRow : NewRow ;
         NewRow *= m_Width;
         for(j = -IntRadius; j <= IntRadius; j++) {
-          if (Dist[abs(i)][abs(j)] < Radius) {
+          if (Dist[int16_t(abs(i))][int16_t(abs(j))] < Radius) {
             NewCol = Col+j;
             NewCol = NewCol < 0? -NewCol : NewCol > Width1? Width1_2-NewCol : NewCol ;