From: Ben Pfaff Date: Tue, 25 Sep 2012 23:59:04 +0000 (-0700) Subject: CROSSTABS: Fix bug in check for REPORT in general mode. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d68ef1c07880851ffd30ae9420bb081cfc80767;p=pspp CROSSTABS: Fix bug in check for REPORT in general mode. Found by GCC 4.7. --- diff --git a/src/language/stats/crosstabs.q b/src/language/stats/crosstabs.q index b60133d4f5..65e92091cd 100644 --- a/src/language/stats/crosstabs.q +++ b/src/language/stats/crosstabs.q @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -289,11 +289,11 @@ cmd_crosstabs (struct lexer *lexer, struct dataset *ds) proc.exclude = (cmd.miss == CRS_TABLE ? MV_ANY : cmd.miss == CRS_INCLUDE ? MV_SYSTEM : MV_NEVER); - if (proc.mode == GENERAL && proc.mode == MV_NEVER) + if (proc.mode == GENERAL && proc.exclude == MV_NEVER) { msg (SE, _("Missing mode REPORT not allowed in general mode. " "Assuming MISSING=TABLE.")); - proc.mode = MV_ANY; + proc.exclude = MV_ANY; } /* PIVOT. */