summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-02 22:59:47 +0200
committerTyge Løvset <[email protected]>2020-09-02 22:59:47 +0200
commit2681642ec003b02cf52d7651d49af2fe906480e7 (patch)
treeb4dbcc29353546a2e0f0a3ccb26b5d34e528268d /examples
parent7fd50323b46599090d5cd9ade43a7cdb69c1e145 (diff)
downloadSTC-modified-2681642ec003b02cf52d7651d49af2fe906480e7.tar.gz
STC-modified-2681642ec003b02cf52d7651d49af2fe906480e7.zip
Renamed copt -> coption. Some smaller updates.
Diffstat (limited to 'examples')
-rw-r--r--examples/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/queue.c b/examples/queue.c
index fa8700fe..15897f38 100644
--- a/examples/queue.c
+++ b/examples/queue.c
@@ -7,8 +7,8 @@ declare_cqueue(i, clist_i); // min-heap (increasing values)
int main() {
int n = 10000000;
- crand_rng32_t gen = crand_rng32_init(1234);
- crand_uniform_i32_t dist = crand_uniform_i32_init(gen, 0, n);
+ crand_uniform_i32_t dist;
+ dist = crand_uniform_i32_init(crand_rng32_init(1234), 0, n);
cqueue_i queue = cqueue_i_init();