summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--generic/tkCanvUtil.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a0f6821..2bf565d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,12 @@
Backported from TEA, but kept all original platform code which was
removed from TEA.
+2011-03-14 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * generic/tkBind.c: Eliminate some more unneeded write-only
+ * generic/tkCanvUtil.c: variables (discovered by gcc-4.6)
+ * generic/tkFocus.c:
+
2011-03-12 Donal K. Fellows <dkf@users.sf.net>
Remove casts from uses of ckalloc/ckfree/... now that Tcl declares
diff --git a/generic/tkCanvUtil.c b/generic/tkCanvUtil.c
index 60f06c7..a49e3f6 100644
--- a/generic/tkCanvUtil.c
+++ b/generic/tkCanvUtil.c
@@ -1770,7 +1770,7 @@ TkCanvTranslatePath(
b[numOutput*2] = -yN;
b[numOutput*2 + 1] = xClip;
numOutput++;
- assert(numOutput <= maxOutput);
+ assert(numOutput <= numVertex*3);
priorY = yN;
inside = 0;
} else if (i == 0) {
@@ -1809,14 +1809,14 @@ TkCanvTranslatePath(
b[numOutput*2] = -yN;
b[numOutput*2 + 1] = xClip;
numOutput++;
- assert(numOutput <= maxOutput);
+ assert(numOutput <= numVertex*3);
}
inside = 1;
}
b[numOutput*2] = -y;
b[numOutput*2 + 1] = x;
numOutput++;
- assert(numOutput <= maxOutput);
+ assert(numOutput <= numVertex*3);
}
}