]> git.sur5r.net Git - cc65/blobdiff - src/cc65/exprnode.c
Fixed a bug
[cc65] / src / cc65 / exprnode.c
index a5cf4aef1761fe81bf6112ca354565eb6dc4142d..8bffe688fcc09c4d3955017c30cb85665af1d6be 100644 (file)
@@ -92,7 +92,7 @@ void SetItem (ExprNode* N, void* Item, unsigned Index)
 {
     if (Index >= CollCount (&N->List)) {
        /* Fill up with NULL pointers */
-               while (Index >= CollCount (&N->List) < Index) {
+               while (Index >= CollCount (&N->List)) {
            CollAppend (&N->List, 0);
        }
        /* Append the new item */