[Avl-cvs] avl/src avl.cpp,1.20,1.21
Brought to you by:
hetfield666,
jah2003
From: Patrizio B. <het...@us...> - 2004-09-17 12:46:53
|
Update of /cvsroot/avl/avl/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18119/src Modified Files: avl.cpp Log Message: sanity checks Index: avl.cpp =================================================================== RCS file: /cvsroot/avl/avl/src/avl.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** avl.cpp 17 Sep 2004 12:44:16 -0000 1.20 --- avl.cpp 17 Sep 2004 12:46:43 -0000 1.21 *************** *** 197,200 **** --- 197,201 ---- upperbound=base_tree-1; + if (upperbound<0) upperbound=0; gtk_spin_button_set_value(GTK_SPIN_BUTTON(spinbutton2),upperbound); GtkWidget *dialog=gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, *************** *** 305,309 **** if (base_tree<upperbound) { upperbound=base_tree-1; ! printf("The changement number you entered is bigger than the tree start dimension. Reduced to %d\n",upperbound); } --- 306,311 ---- if (base_tree<upperbound) { upperbound=base_tree-1; ! if (upperbound<0) upperbound=0; ! printf("The changement number you entered is bigger than the tree start dimension. Reduced to %d\n",upperbound); } |