Diff of /ptstitch.c [512b9c] .. [ebced6] Maximize Restore

  Switch to side-by-side view

--- a/ptstitch.c
+++ b/ptstitch.c
@@ -1149,10 +1149,10 @@
             // Set the value of the pixel
             for (i = 0; i < 3; i++) {
                 assert(colours[i] <= 0xffff && colours[i] >= 0);
-                *(u16ResultBuffer + pixelOffset + i) = colours[i];
+                *(u16ResultBuffer + pixelOffset + i) = (uint16_t)(colours[i]);
             }
             //      printf("Done loop 2\n");      
-            *(u16ResultBuffer + pixelOffset + 3) = alphaChannel;
+            *(u16ResultBuffer + pixelOffset + 3) = (uint16_t)(alphaChannel);
 
 
         }                       //(currentColumn < imageWidth)