summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/list.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-18 07:51:44 +0100
committerTyge Løvset <[email protected]>2023-02-18 07:51:44 +0100
commit0e3d07dbd991c1f1a691b24655c37ddab660a9d9 (patch)
treedc9801e2fc9f62cbe3eb32cc8897c65e3f25f78b /misc/examples/list.c
parentc4ae61de5be08e719e3183f4e2d1115c11856796 (diff)
downloadSTC-modified-0e3d07dbd991c1f1a691b24655c37ddab660a9d9.tar.gz
STC-modified-0e3d07dbd991c1f1a691b24655c37ddab660a9d9.zip
Fixed carc, cbox: no need for no_lookup and no_eq: use only no_cmp, no_hash if needed.
Diffstat (limited to 'misc/examples/list.c')
-rw-r--r--misc/examples/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/list.c b/misc/examples/list.c
index 79dcfcaf..6a655800 100644
--- a/misc/examples/list.c
+++ b/misc/examples/list.c
@@ -30,7 +30,7 @@ int main() {
clist_fx_sort(&list); // mergesort O(n*log n)
puts("sorted");
- int last = 0;
+ double last = 0;
c_foreach (i, clist_fx, list) {
if (*i.ref < last) {printf("ERROR"); exit(-1);}
last = *i.ref;