diff options
| author | Tyge Løvset <[email protected]> | 2020-08-08 10:05:51 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-08-08 10:05:51 +0200 |
| commit | 051df16d51eb1939738b385e971432d04ab695e8 (patch) | |
| tree | 91cec0d6208297fc7fe64f234e8c67cb00d635f0 /examples | |
| parent | 82b4f519436dbb9d61b1c02b1ca1e3122b7523b3 (diff) | |
| download | STC-modified-051df16d51eb1939738b385e971432d04ab695e8.tar.gz STC-modified-051df16d51eb1939738b385e971432d04ab695e8.zip | |
Changed iter API again, optimized.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/demos.c b/examples/demos.c index 02ac8623..a3a587ec 100644 --- a/examples/demos.c +++ b/examples/demos.c @@ -139,7 +139,7 @@ void mapdemo2() cmap_si_put(&nums, "Groovy", 200); // overwrite previous
// iterate the map:
- for (cmap_si_iter_t i = cmap_si_begin(&nums); i.item; cmap_si_next(&i))
+ for (cmap_si_iter_t i = cmap_si_begin(&nums); i.item != i.end; cmap_si_next(&i))
printf("long: %s: %d\n", i.item->key.str, i.item->value);
// or rather use the short form:
|
