History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GGL-29
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Carlos Garnacho
Reporter: Mikael Hallendal
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Giggle

Compile with -Werror on AMD64

Created: 08/Mar/07 01:24 AM   Updated: 21/Mar/07 12:29 PM
Component/s: None
Affects Version/s: 0.1
Fix Version/s: 0.2


 Description  « Hide
This was reported in the Forum at:

http://developer.imendio.com/node/98



 All   Comments   Change History      Sort Order:
Mikael Hallendal - [08/Mar/07 01:25 AM ]
diff --git a/src/giggle-graph-renderer.c b/src/giggle-graph-renderer.c
index 65e0eb8..5406695 100644
--- a/src/giggle-graph-renderer.c
+++ b/src/giggle-graph-renderer.c
@@ -287,7 +287,7 @@ giggle_graph_renderer_render (GtkCellRenderer *cell,
        paths_state = g_object_get_qdata (G_OBJECT (revision), revision_paths_s
        children = giggle_revision_get_children (revision);
-       cur_pos = (gint) g_hash_table_lookup (priv->paths_info, revision);
+       cur_pos = GPOINTER_TO_INT(g_hash_table_lookup (priv->paths_info, revisi
        path_state = g_hash_table_lookup (paths_state, GINT_TO_POINTER (cur_pos
        paths = path = get_list (paths_state);
        cairo_set_line_width (cr, LINE_WIDTH (size));
@@ -316,7 +316,7 @@ giggle_graph_renderer_render (GtkCellRenderer *cell,
        /* paint connections between paths */
        while (children) {
-               pos = (gint) g_hash_table_lookup (priv->paths_info, children->d
+               pos = GPOINTER_TO_INT(g_hash_table_lookup (priv->paths_info, ch
                path_state = g_hash_table_lookup (paths_state, GINT_TO_POINTER 
                if (path_state->upper_color) {
diff --git a/src/giggle-remote.c b/src/giggle-remote.c
index e6e9d5b..062a62d 100644
--- a/src/giggle-remote.c
+++ b/src/giggle-remote.c
@@ -206,7 +206,7 @@ giggle_remote_new_from_file (gchar const *filename)
                                                                   *step + strl
                        } else {
                                gchar* escaped = g_strescape (*step, NULL);
-                               g_warning ("Read unexpected line at %s:%d\n\"%s
+                               g_warning ("Read unexpected line at %s:%zd\n\"%
                                           filename, step - lines, escaped);
                                g_free (escaped);
                        }

Carlos Garnacho - [08/Mar/07 12:24 PM ]
nice! the fix is already in my repo