[yelp] Avoid a compiler warning when checking a condition



commit 447c419c1bb0b601180e87deff2e00a6acefca6c
Author: David King <amigadave amigadave com>
Date:   Mon Feb 9 22:40:14 2015 +0000

    Avoid a compiler warning when checking a condition

 libyelp/yelp-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index 6a07b16..80217aa 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -896,7 +896,7 @@ view_scrolled (GtkAdjustment *adjustment,
         return;
     if (adjustment == priv->vadjustment)
         ((YelpBackEntry *) priv->back_cur->data)->vadj = gtk_adjustment_get_value (adjustment);
-    else if (adjustment = priv->hadjustment)
+    else if (adjustment == priv->hadjustment)
         ((YelpBackEntry *) priv->back_cur->data)->hadj = gtk_adjustment_get_value (adjustment);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]