projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some bugs related to empty parentheses
[pspp]
/
src
/
language
/
stats
/
quick-cluster.c
diff --git
a/src/language/stats/quick-cluster.c
b/src/language/stats/quick-cluster.c
index f4c64b09977fff52caa8f83e9f172ad75dff14a5..61f0cea02ade6c2477c19f3855371ec9df866a9c 100644
(file)
--- a/
src/language/stats/quick-cluster.c
+++ b/
src/language/stats/quick-cluster.c
@@
-738,9
+738,9
@@
cmd_quick_cluster (struct lexer *lexer, struct dataset *ds)
{
if (lex_match_id (lexer, "CLUSTERS"))
{
{
if (lex_match_id (lexer, "CLUSTERS"))
{
- if (lex_force_match (lexer, T_LPAREN))
+ if (lex_force_match (lexer, T_LPAREN) &&
+ lex_force_int (lexer))
{
{
- lex_force_int (lexer);
qc.ngroups = lex_integer (lexer);
if (qc.ngroups <= 0)
{
qc.ngroups = lex_integer (lexer);
if (qc.ngroups <= 0)
{
@@
-753,9
+753,9
@@
cmd_quick_cluster (struct lexer *lexer, struct dataset *ds)
}
else if (lex_match_id (lexer, "CONVERGE"))
{
}
else if (lex_match_id (lexer, "CONVERGE"))
{
- if (lex_force_match (lexer, T_LPAREN))
+ if (lex_force_match (lexer, T_LPAREN) &&
+ lex_force_num (lexer))
{
{
- lex_force_num (lexer);
qc.epsilon = lex_number (lexer);
if (qc.epsilon <= 0)
{
qc.epsilon = lex_number (lexer);
if (qc.epsilon <= 0)
{
@@
-768,9
+768,9
@@
cmd_quick_cluster (struct lexer *lexer, struct dataset *ds)
}
else if (lex_match_id (lexer, "MXITER"))
{
}
else if (lex_match_id (lexer, "MXITER"))
{
- if (lex_force_match (lexer, T_LPAREN))
+ if (lex_force_match (lexer, T_LPAREN) &&
+ lex_force_int (lexer))
{
{
- lex_force_int (lexer);
qc.maxiter = lex_integer (lexer);
if (qc.maxiter <= 0)
{
qc.maxiter = lex_integer (lexer);
if (qc.maxiter <= 0)
{