mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
notcurses_version_components(): drop atoi()s #1131
This commit is contained in:
parent
740dc2497d
commit
8c9f8d193a
@ -24,9 +24,9 @@
|
||||
#define ESC "\x1b"
|
||||
|
||||
void notcurses_version_components(int* major, int* minor, int* patch, int* tweak){
|
||||
*major = atoi(NOTCURSES_VERSION_MAJOR);
|
||||
*minor = atoi(NOTCURSES_VERSION_MINOR);
|
||||
*patch = atoi(NOTCURSES_VERSION_PATCH);
|
||||
*major = NOTCURSES_VERNUM_MAJOR;
|
||||
*minor = NOTCURSES_VERNUM_MINOR;
|
||||
*patch = NOTCURSES_VERNUM_PATCH;
|
||||
*tweak = atoi(NOTCURSES_VERSION_TWEAK);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user