Fix some signed/unsigned comparison problems. (#6510, David Kaelbling)

Thu Nov 30 12:39:22 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
	some signed/unsigned comparison problems. (#6510,
	David Kaelbling)
This commit is contained in:
Owen Taylor
2000-11-30 17:40:52 +00:00
committed by Owen Taylor
parent 2cabfbf0e5
commit eb5bc96b67
8 changed files with 45 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
Thu Nov 30 12:39:22 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
some signed/unsigned comparison problems. (#6510,
David Kaelbling)
Thu Nov 30 11:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_word): Fix stupid

View File

@@ -1,3 +1,9 @@
Thu Nov 30 12:39:22 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
some signed/unsigned comparison problems. (#6510,
David Kaelbling)
Thu Nov 30 11:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_word): Fix stupid

View File

@@ -1,3 +1,9 @@
Thu Nov 30 12:39:22 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
some signed/unsigned comparison problems. (#6510,
David Kaelbling)
Thu Nov 30 11:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_word): Fix stupid

View File

@@ -1,3 +1,9 @@
Thu Nov 30 12:39:22 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
some signed/unsigned comparison problems. (#6510,
David Kaelbling)
Thu Nov 30 11:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_word): Fix stupid

View File

@@ -1,3 +1,9 @@
Thu Nov 30 12:39:22 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
some signed/unsigned comparison problems. (#6510,
David Kaelbling)
Thu Nov 30 11:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_word): Fix stupid

View File

@@ -1,3 +1,9 @@
Thu Nov 30 12:39:22 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
some signed/unsigned comparison problems. (#6510,
David Kaelbling)
Thu Nov 30 11:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_word): Fix stupid

View File

@@ -1,3 +1,9 @@
Thu Nov 30 12:39:22 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
some signed/unsigned comparison problems. (#6510,
David Kaelbling)
Thu Nov 30 11:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_word): Fix stupid

View File

@@ -1203,7 +1203,7 @@ gtk_spin_button_insert_text (GtkEditable *editable,
gint i;
GdkWChar pos_sign;
GdkWChar neg_sign;
guint entry_length;
gint entry_length;
entry_length = entry->text_length;
@@ -1238,7 +1238,7 @@ gtk_spin_button_insert_text (GtkEditable *editable,
}
if (dotpos > -1 && *position > dotpos &&
spin->digits - entry_length
(gint)spin->digits - entry_length
+ dotpos - new_text_length + 1 < 0)
return;
@@ -1254,7 +1254,7 @@ gtk_spin_button_insert_text (GtkEditable *editable,
{
if (!spin->digits || dotpos > -1 ||
(new_text_length - 1 - i + entry_length
- *position > spin->digits))
- *position > (gint)spin->digits))
return;
dotpos = *position + i;
}