Commit 7d7defac authored by Darin Adler's avatar Darin Adler

Fixed overflow problem caused by gint16 local variable.

parent e445831a
1999-12-15 Darin Adler <darin@eazel.com>
* libnautilus/gtkscrollframe.c (gtk_scroll_frame_size_allocate):
Fixed overflow problem caused by gint16 local variable.
1999-12-15 Darin Adler <darin@eazel.com>
* src/ntl-window.c (nautilus_window_constructed):
......
......@@ -686,7 +686,10 @@ gtk_scroll_frame_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
guint count = 0;
do {
gint16 possible_new_size;
/* This must be a gint, not a gint16, otherwise we'll get
* overflow below when frame_w or frame_h is zero.
*/
gint possible_new_size;
compute_relative_allocation (widget, &relative_allocation);
......
......@@ -686,7 +686,10 @@ gtk_scroll_frame_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
guint count = 0;
do {
gint16 possible_new_size;
/* This must be a gint, not a gint16, otherwise we'll get
* overflow below when frame_w or frame_h is zero.
*/
gint possible_new_size;
compute_relative_allocation (widget, &relative_allocation);
......
......@@ -686,7 +686,10 @@ gtk_scroll_frame_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
guint count = 0;
do {
gint16 possible_new_size;
/* This must be a gint, not a gint16, otherwise we'll get
* overflow below when frame_w or frame_h is zero.
*/
gint possible_new_size;
compute_relative_allocation (widget, &relative_allocation);
......
......@@ -686,7 +686,10 @@ gtk_scroll_frame_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
guint count = 0;
do {
gint16 possible_new_size;
/* This must be a gint, not a gint16, otherwise we'll get
* overflow below when frame_w or frame_h is zero.
*/
gint possible_new_size;
compute_relative_allocation (widget, &relative_allocation);
......
......@@ -686,7 +686,10 @@ gtk_scroll_frame_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
guint count = 0;
do {
gint16 possible_new_size;
/* This must be a gint, not a gint16, otherwise we'll get
* overflow below when frame_w or frame_h is zero.
*/
gint possible_new_size;
compute_relative_allocation (widget, &relative_allocation);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment