diff options
| author | tylo <[email protected]> | 2021-08-25 12:04:46 +0200 |
|---|---|---|
| committer | tylo <[email protected]> | 2021-08-25 12:04:46 +0200 |
| commit | a4bacdaf0feae20d417e53d8467ff332ac29413e (patch) | |
| tree | 38dd5edd8d9d256056b0213fa487a11354fd9d45 /examples/priority.c | |
| parent | d80bf9bb4ef1b5a5a6d4edb550b93b93a75972f4 (diff) | |
| download | STC-modified-a4bacdaf0feae20d417e53d8467ff332ac29413e.tar.gz STC-modified-a4bacdaf0feae20d417e53d8467ff332ac29413e.zip | |
BREAKING CHANGE: c_forvar_initdel() macro renamed to c_forauto().
Updated doc and improved csmap_erase.c example.
Diffstat (limited to 'examples/priority.c')
| -rw-r--r-- | examples/priority.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/priority.c b/examples/priority.c index ee64bf42..4824a294 100644 --- a/examples/priority.c +++ b/examples/priority.c @@ -13,7 +13,7 @@ int main() { size_t N = 10000000;
stc64_t rng = stc64_init(time(NULL));
stc64_uniform_t dist = stc64_uniform_init(0, N * 10);
- c_forvar (cpque_i heap = cpque_i_init(), cpque_i_del(&heap))
+ c_forauto (cpque_i, heap)
{
// Push ten million random numbers to priority queue
c_forrange (N)
|
