]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
hashmap_get takes "const struct hashmap_entry *"
[thirdparty/git.git] / diff.c
diff --git a/diff.c b/diff.c
index cc7f06d10d1b4e9e07abb895412c99349a16b027..72d3c6aa1907e008a5a35f86736d0afa02a76559 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -1144,13 +1144,13 @@ static void mark_color_as_moved(struct diff_options *o,
                case DIFF_SYMBOL_PLUS:
                        hm = del_lines;
                        key = prepare_entry(o, n);
-                       match = hashmap_get(hm, key, NULL);
+                       match = hashmap_get(hm, &key->ent, NULL);
                        free(key);
                        break;
                case DIFF_SYMBOL_MINUS:
                        hm = add_lines;
                        key = prepare_entry(o, n);
-                       match = hashmap_get(hm, key, NULL);
+                       match = hashmap_get(hm, &key->ent, NULL);
                        free(key);
                        break;
                default: