summaryrefslogtreecommitdiff
path: root/src/Fl_Button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Button.cxx')
-rw-r--r--src/Fl_Button.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx
index 3df97875b..d22229ea4 100644
--- a/src/Fl_Button.cxx
+++ b/src/Fl_Button.cxx
@@ -59,7 +59,8 @@ void Fl_Button::setonly() { // set this radio button on, turn others off
value(1);
Fl_Group* g = parent();
Fl_Widget*const* a = g->array();
- for (int i = g->children(); i--;) {
+ int i;
+ for (i = g->children(); i--;) {
Fl_Widget* o = *a++;
if (o != this && o->type()==FL_RADIO_BUTTON) ((Fl_Button*)o)->value(0);
}