diff options
| author | Tyge Løvset <[email protected]> | 2020-03-05 10:22:19 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-05 10:22:19 +0100 |
| commit | 197e664c1d49b39b00578c9908467f674ed16098 (patch) | |
| tree | 7c5743637b88236bd3c21e36bb51e952da889282 | |
| parent | 7c59ad49281dcc2e0cd824fd1b51a8b3a6f1a32a (diff) | |
| download | STC-modified-197e664c1d49b39b00578c9908467f674ed16098.tar.gz STC-modified-197e664c1d49b39b00578c9908467f674ed16098.zip | |
Update README.md
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,12 +19,12 @@ declare_CVector(ix, int64_t); // ix is just an example tag name, use anything wi CVector_ix bignums = cvector_initializer; // use cvector_ix_init(); if initializing after declaration. cvector_ix_reserve(&bignums, 100); -for (int i = 0; i<100; ++i) +for (size_t i = 0; i<100; ++i) cvector_ix_push(&bignums, i * i * i); cvector_ix_pop(&bignums); // erase the last uint64_t value; -for (int i = 0; i < cvector_size(bignums); ++i) +for (size_t i = 0; i < cvector_size(bignums); ++i) value = bignums.data[i]; cvector_ix_destroy(&bignums); ``` |
