diff options
| author | Tyge Løvset <[email protected]> | 2023-08-01 18:12:01 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-08-01 18:12:01 +0200 |
| commit | 7df124507b82bfb168a440392060bc0e03ce5c7e (patch) | |
| tree | 259e737ec25e4fb916f50132cf96cd6d06f131b3 /misc/examples/mixed/demos.c | |
| parent | 94391527ef50cbee073a4b427f6fe839c010ecb1 (diff) | |
| download | STC-modified-7df124507b82bfb168a440392060bc0e03ce5c7e.tar.gz STC-modified-7df124507b82bfb168a440392060bc0e03ce5c7e.zip | |
Fixed conversion warnings.
Diffstat (limited to 'misc/examples/mixed/demos.c')
| -rw-r--r-- | misc/examples/mixed/demos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/mixed/demos.c b/misc/examples/mixed/demos.c index 1a604d9f..7f5091fd 100644 --- a/misc/examples/mixed/demos.c +++ b/misc/examples/mixed/demos.c @@ -28,7 +28,7 @@ void stringdemo1(void) cstr_drop(&cs); } -#define i_key int64_t +#define i_key long long #define i_tag ix #include <stc/cvec.h> @@ -39,14 +39,14 @@ void vectordemo1(void) for (int i = 10; i <= 100; i += 10) cvec_ix_push(&bignums, i * i); - printf("erase - %d: %" PRIu64 "\n", 3, bignums.data[3]); + printf("erase - %d: %lld\n", 3, bignums.data[3]); cvec_ix_erase_n(&bignums, 3, 1); // erase index 3 cvec_ix_pop(&bignums); // erase the last cvec_ix_erase_n(&bignums, 0, 1); // erase the first for (int i = 0; i < cvec_ix_size(&bignums); ++i) { - printf("%d: %" PRIu64 "\n", i, bignums.data[i]); + printf("%d: %lld\n", i, bignums.data[i]); } cvec_ix_drop(&bignums); |
