diff options
| author | Tyge Løvset <[email protected]> | 2020-03-04 07:19:08 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-04 07:19:08 +0100 |
| commit | 019b69c3da45933b878e7dadf7d15074b2e178bb (patch) | |
| tree | 5a334b87167c696af1338e2528b050a197dd1a9a | |
| parent | 89bb51a98b2cf5c454e27f8f6dc905a73aae8b42 (diff) | |
| download | STC-modified-019b69c3da45933b878e7dadf7d15074b2e178bb.tar.gz STC-modified-019b69c3da45933b878e7dadf7d15074b2e178bb.zip | |
Add files via upload
Fixed a bug in the test prog.
| -rw-r--r-- | cmap_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmap_test.c b/cmap_test.c index 5e1a9064..aec99192 100644 --- a/cmap_test.c +++ b/cmap_test.c @@ -94,10 +94,10 @@ int main() CMap(id) mymap = cmap_INIT;
for (i = 0; i < 600000; ++i)
- cmap_id_put(&mymap, i*i, i * 1.0);
+ cmap_id_put(&mymap, i*i, i);
for (i = 1000; i < 1010; ++i)
- printf("look %d: %f\n", i*i, *cmap_id_get(mymap, i*i));
+ printf("look %d: %f\n", i*i, cmap_id_get(mymap, i*i)->value);
cmap_id_destroy(&mymap);
}
|
