projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f905105
)
psppire-var-sheet: Remove unneeded and useless check of unsigned for >= 0.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 18 Feb 2014 01:55:51 +0000
(17:55 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 18 Feb 2014 02:00:38 +0000
(18:00 -0800)
Reported by Clang.
src/ui/gui/psppire-var-sheet.c
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-var-sheet.c
b/src/ui/gui/psppire-var-sheet.c
index bb2c56ba7aa9ee27257cf2470b57d2efe53fee19..6fc42c1a36922e8df114c6c6a181ca2f3e4e61ba 100644
(file)
--- a/
src/ui/gui/psppire-var-sheet.c
+++ b/
src/ui/gui/psppire-var-sheet.c
@@
-1,5
+1,5
@@
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2008, 2009, 2011, 2012, 2013 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009, 2011, 2012, 2013
, 2014
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
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
@@
-1270,7
+1270,7
@@
on_edit_clear_variables (GtkAction *action, PsppireVarSheet *var_sheet)
for (i = 1; i <= range_set_node_get_width (node); i++)
{
unsigned long row = range_set_node_get_end (node) - i;
for (i = 1; i <= range_set_node_get_width (node); i++)
{
unsigned long row = range_set_node_get_end (node) - i;
- if (row
>= 0 && row
< psppire_dict_get_var_cnt (dict))
+ if (row < psppire_dict_get_var_cnt (dict))
psppire_dict_delete_variables (dict, row, 1);
}
}
psppire_dict_delete_variables (dict, row, 1);
}
}