[anjuta] symbol-db: Corrected type cast



commit 79698cb40ab248fc7517602afef750204efcd2d4
Author: Naba Kumar <naba gnome org>
Date:   Sun Jun 20 18:06:53 2010 +0300

    symbol-db: Corrected type cast

 plugins/symbol-db/symbol-db-query-result.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-query-result.c b/plugins/symbol-db/symbol-db-query-result.c
index cbd227a..430712c 100644
--- a/plugins/symbol-db/symbol-db-query-result.c
+++ b/plugins/symbol-db/symbol-db-query-result.c
@@ -310,10 +310,10 @@ isymbol_get_int (IAnjutaSymbol *isymbol, IAnjutaSymbolField field,
 	{
 		if (!G_VALUE_HOLDS_STRING (val))
 			return (gint) IANJUTA_SYMBOL_TYPE_NONE;
-		gint type_val = 
-			(gint)g_hash_table_lookup ((GHashTable*)result->priv->sym_type_conversion_hash, 
-			                           g_value_get_string (val));
-		return type_val;
+		else 
+			return GPOINTER_TO_INT (g_hash_table_lookup
+			                        ((GHashTable*)result->priv->sym_type_conversion_hash, 
+			                         g_value_get_string (val)));
 	}
 	return g_value_get_int (val);
 }



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