notcurses_version_components(): drop atoi()s #1131

This commit is contained in:
nick black 2020-11-24 04:05:54 -05:00 committed by Nick Black
parent 740dc2497d
commit 8c9f8d193a

View File

@ -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);
}