summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/priority.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-04 23:35:56 +0100
committerGitHub <[email protected]>2023-02-04 23:35:56 +0100
commitadc47cefc2976768c3f0b773bd26bfd1062e8a53 (patch)
tree4923f88afb0d091d5d39ae03d65a4998a0517652 /misc/examples/priority.c
parent0c4c4f8bba17562735b67b2923cd23c773aa53a7 (diff)
parentd2ff84c53aa9bd3857fdf22dcf7cd9398a4780be (diff)
downloadSTC-modified-adc47cefc2976768c3f0b773bd26bfd1062e8a53.tar.gz
STC-modified-adc47cefc2976768c3f0b773bd26bfd1062e8a53.zip
Merge pull request #46 from tylov/newinit
Version 4.1 RC2: signed sizes and indices, cspan with numpy slicing.
Diffstat (limited to 'misc/examples/priority.c')
-rw-r--r--misc/examples/priority.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/priority.c b/misc/examples/priority.c
index 22da6f60..f39c0634 100644
--- a/misc/examples/priority.c
+++ b/misc/examples/priority.c
@@ -9,13 +9,13 @@
#include <stc/cpque.h>
int main() {
- size_t N = 10000000;
- stc64_t rng = stc64_new(time(NULL));
+ intptr_t N = 10000000;
+ stc64_t rng = stc64_new((uint64_t)time(NULL));
stc64_uniform_t dist = stc64_uniform_new(0, N * 10);
c_AUTO (cpque_i, heap)
{
// Push ten million random numbers to priority queue
- printf("Push %" c_ZU " numbers\n", N);
+ printf("Push %" c_ZI " numbers\n", N);
c_FORRANGE (N)
cpque_i_push(&heap, stc64_uniform(&rng, &dist));