shithub: puzzles

Download patch

ref: f5dedef552daa5b08f375c47028b6c8b5a47c7d1
parent: cf0b0b747b4ce389b07ccd6e29a50074a940ac93
author: Simon Tatham <[email protected]>
date: Thu Mar 1 02:39:05 EST 2007

Adam D. Lopresto and Phil Bordelon independently point out a
signedness mismatch.

[originally from svn r7350]

--- a/latin.c
+++ b/latin.c
@@ -961,7 +961,7 @@
 
         ls.cube = cube; ls.o = o; /* for cube() to work */
 
-        dbg = snewn(3*o*o*o, unsigned char);
+        dbg = snewn(3*o*o*o, char);
         for (y = 0; y < o; y++) {
             for (x = 0; x < o; x++) {
                 for (i = 1; i <= o; i++) {