diff options
| author | Tyge Løvset <[email protected]> | 2021-05-24 19:12:22 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-05-24 19:12:22 +0200 |
| commit | 1490bbe1aa98b4081c226060834d54d05bf7e6e3 (patch) | |
| tree | 5c3cd1aa6cee6730a9923c34ee3bdf5d60456be2 /examples/priority.c | |
| parent | b2f0250fd70c54ca55bd430f748b3ad21c24a86a (diff) | |
| download | STC-modified-1490bbe1aa98b4081c226060834d54d05bf7e6e3.tar.gz STC-modified-1490bbe1aa98b4081c226060834d54d05bf7e6e3.zip | |
Split c_fordefer() into c_forvar() and c_fordefer() macros.
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 e0865054..ee64bf42 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_fordefer (cpque_i heap = cpque_i_init(), cpque_i_del(&heap))
+ c_forvar (cpque_i heap = cpque_i_init(), cpque_i_del(&heap))
{
// Push ten million random numbers to priority queue
c_forrange (N)
|
