summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrjohnson <rjohnson>1998-10-14 00:34:39 (GMT)
committerrjohnson <rjohnson>1998-10-14 00:34:39 (GMT)
commitd09ca0c5afda618e8da64a1d270df6741aefa4a9 (patch)
tree139124e1442c214d7a0405810362d0aa01d49da6
parent66a2d0b81392599d07859d249372259daef2441c (diff)
downloadtk-d09ca0c5afda618e8da64a1d270df6741aefa4a9.zip
tk-d09ca0c5afda618e8da64a1d270df6741aefa4a9.tar.gz
tk-d09ca0c5afda618e8da64a1d270df6741aefa4a9.tar.bz2
Add parens around expression in if statement. The code would not
compile correctly under some compilers. Also it was not in the Tcl style conventions.
-rw-r--r--win/tkWinWm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index c1500c4..faac1f8 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -7,11 +7,12 @@
* to the window manager.
*
* Copyright (c) 1995-1997 Sun Microsystems, Inc.
+ * Copyright (c) 1998 by Scriptics Corporation.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinWm.c,v 1.4 1998/09/14 18:24:01 stanton Exp $
+ * RCS: @(#) $Id: tkWinWm.c,v 1.5 1998/10/14 00:34:39 rjohnson Exp $
*/
#include "tkWinInt.h"
@@ -2147,7 +2148,7 @@ Tk_SetGrid(tkwin, reqWidth, reqHeight, widthInc, heightInc)
&& (wmPtr->widthInc == widthInc)
&& (wmPtr->heightInc == heightInc)
&& ((wmPtr->sizeHintsFlags & (PBaseSize|PResizeInc))
- == PBaseSize|PResizeInc)) {
+ == (PBaseSize|PResizeInc))) {
return;
}