[libgee] Fix warnings due to comparison to strcmp
- From: Didier Villevalois <dvillevalois src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgee] Fix warnings due to comparison to strcmp
- Date: Fri, 25 Sep 2009 20:03:52 +0000 (UTC)
commit cd630fd26754dfcb6526c67ec1ff06343499dc53
Author: Didier 'Ptitjes <ptitjes free fr>
Date: Fri Sep 25 22:04:41 2009 +0200
Fix warnings due to comparison to strcmp
tests/testpriorityqueue.vala | 2 +-
tests/testtreemap.vala | 2 +-
tests/testtreemultiset.vala | 2 +-
tests/testtreeset.vala | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/testpriorityqueue.vala b/tests/testpriorityqueue.vala
index cf345f8..46aa5f2 100644
--- a/tests/testpriorityqueue.vala
+++ b/tests/testpriorityqueue.vala
@@ -46,7 +46,7 @@ public class PriorityQueueTests : QueueTests {
assert (test_queue != null);
// Check the selected compare function
- assert (test_queue.compare_func == strcmp);
+ assert (test_queue.compare_func == (CompareFunc) strcmp);
}
public new void test_gobject_properties() {
diff --git a/tests/testtreemap.vala b/tests/testtreemap.vala
index d7b5ca4..3a91b62 100644
--- a/tests/testtreemap.vala
+++ b/tests/testtreemap.vala
@@ -47,7 +47,7 @@ public class TreeMapTests : MapTests {
assert (test_tree_map != null);
// Check the selected compare and equal functions
- assert (test_tree_map.key_compare_func == strcmp);
+ assert (test_tree_map.key_compare_func == (CompareFunc) strcmp);
assert (test_tree_map.value_equal_func == str_equal);
}
diff --git a/tests/testtreemultiset.vala b/tests/testtreemultiset.vala
index d5cb0e2..da86ca2 100644
--- a/tests/testtreemultiset.vala
+++ b/tests/testtreemultiset.vala
@@ -44,6 +44,6 @@ public class TreeMultiSetTests : MultiSetTests {
assert (test_multi_set != null);
// Check the selected compare functions
- assert (test_multi_set.compare_func == strcmp);
+ assert (test_multi_set.compare_func == (CompareFunc) strcmp);
}
}
diff --git a/tests/testtreeset.vala b/tests/testtreeset.vala
index 04bebc4..038b341 100644
--- a/tests/testtreeset.vala
+++ b/tests/testtreeset.vala
@@ -47,7 +47,7 @@ public class TreeSetTests : SetTests {
assert (test_set != null);
// Check the selected compare function
- assert (test_set.compare_func == strcmp);
+ assert (test_set.compare_func == (CompareFunc) strcmp);
}
public new void test_gobject_properties() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]