notcurses_version_components(): drop atoi()s #1131

pull/1137/head
nick black 4 years ago committed by Nick Black
parent 740dc2497d
commit 8c9f8d193a

@ -24,9 +24,9 @@
#define ESC "\x1b" #define ESC "\x1b"
void notcurses_version_components(int* major, int* minor, int* patch, int* tweak){ void notcurses_version_components(int* major, int* minor, int* patch, int* tweak){
*major = atoi(NOTCURSES_VERSION_MAJOR); *major = NOTCURSES_VERNUM_MAJOR;
*minor = atoi(NOTCURSES_VERSION_MINOR); *minor = NOTCURSES_VERNUM_MINOR;
*patch = atoi(NOTCURSES_VERSION_PATCH); *patch = NOTCURSES_VERNUM_PATCH;
*tweak = atoi(NOTCURSES_VERSION_TWEAK); *tweak = atoi(NOTCURSES_VERSION_TWEAK);
} }

Loading…
Cancel
Save