Commit 875b0f8f authored by Jens Georg's avatar Jens Georg

Fix warning about pointer cast

Signed-off-by: Jens Georg's avatarJens Georg <mail@jensge.org>
parent 7135d7a4
......@@ -14,7 +14,7 @@ public class PixbufCache : Object {
public class PixbufCacheBatch : Gee.TreeMultiMap<BackgroundJob.JobPriority, Photo> {
public PixbufCacheBatch() {
base (BackgroundJob.JobPriority.compare_func);
base ((GLib.CompareDataFunc<BackgroundJob.JobPriority>)BackgroundJob.JobPriority.compare_func);
}
}
......
......@@ -75,7 +75,7 @@ public abstract class BackgroundJob {
return (int) other - (int) this;
}
public static int compare_func(void *a, void *b) {
public static int compare_func(JobPriority a, JobPriority b) {
return (int) b - (int) a;
}
}
......
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