Skip to content

Commit

Permalink
Merge pull request #17 from sicelo/printf
Browse files Browse the repository at this point in the history
Fix value overflow
  • Loading branch information
g0hl1n authored Jul 3, 2024
2 parents 5e39369 + 3f07cd9 commit e791efe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ meson install -C build

### Dependencies ###

You need the development files for the X11, Xext and Xss library.
You need the development files for the X11, Xext and Xss libraries, and a
C99-compliant compiler.

## Contributing ##

Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project('xprintidle',
version : '0.2.5',
license : 'GPL-2.0',
default_options : [
'c_std=c89',
'c_std=c99',
'warning_level=3',
'optimization=3',
]
Expand Down
2 changes: 1 addition & 1 deletion xprintidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ int main(int argc, char *argv[]) {
return EXIT_SUCCESS;
}

printf("%lu\n", idle);
printf("%llu\n", idle);
return EXIT_SUCCESS;
}

Expand Down

0 comments on commit e791efe

Please sign in to comment.