Skip to content

Commit

Permalink
fix: Use array_size macro instead
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Feb 22, 2022
1 parent 874e446 commit 2bc67cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ main(void) {
/* Run example */
cron_dt_range();

for (size_t i = 0; i < (sizeof(cron_tokens_list) / sizeof(cron_tokens_list[0])); ++i) {
for (size_t i = 0; i < LWDTC_ARRAYSIZE(cron_tokens_list); ++i) {
lwdtcr_t res;
printf("Parsing token: %s\r\n", cron_tokens_list[i]);
if ((res = lwdtc_cron_parse(&cron_ctx, cron_tokens_list[i])) != lwdtcOK) {
Expand Down

0 comments on commit 2bc67cf

Please sign in to comment.