diff options
author | hubertf <hubertf@NetBSD.org> | 1999-07-21 13:10:47 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1999-07-21 13:10:47 +0000 |
commit | 21ce304979b76ad5fff791e88f3f0c0fa22ce01a (patch) | |
tree | 4b250174422e12057f52e4c49486d76ece8d31c1 /atc | |
parent | a1ba5698f90b646c771a19bc8cca26141862b440 (diff) | |
download | bsdgames-darwin-21ce304979b76ad5fff791e88f3f0c0fa22ce01a.tar.gz bsdgames-darwin-21ce304979b76ad5fff791e88f3f0c0fa22ce01a.tar.zst bsdgames-darwin-21ce304979b76ad5fff791e88f3f0c0fa22ce01a.zip |
When atc(6) parses its game definition files, the check for `width'
being defined more than once incorrectly checks for `height' having
been previously defined instead.
Patch submitted in PR 8038 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'atc')
-rw-r--r-- | atc/grammar.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/atc/grammar.y b/atc/grammar.y index 91266ac7..4687582d 100644 --- a/atc/grammar.y +++ b/atc/grammar.y @@ -1,4 +1,4 @@ -/* $NetBSD: grammar.y,v 1.4 1997/10/10 02:07:08 lukem Exp $ */ +/* $NetBSD: grammar.y,v 1.5 1999/07/21 13:10:47 hubertf Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -68,7 +68,7 @@ #if 0 static char sccsid[] = "@(#)grammar.y 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: grammar.y,v 1.4 1997/10/10 02:07:08 lukem Exp $"); +__RCSID("$NetBSD: grammar.y,v 1.5 1999/07/21 13:10:47 hubertf Exp $"); #endif #endif /* not lint */ @@ -137,7 +137,7 @@ hdef: wdef: WidthOp '=' ConstOp ';' { - if (sp->height != 0) + if (sp->width != 0) return (yyerror("Redefinition of 'width'.")); else if ($3 < 3) return (yyerror("'width' is too small.")); |