Skip to content

Commit

Permalink
BLD: fix building against compiler that refuses to convert char to in…
Browse files Browse the repository at this point in the history
…t implicitly
  • Loading branch information
neutrinoceros committed Mar 10, 2024
1 parent df9f5c4 commit 5568513
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/erfaversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* without it, the macros have to be defined explicitly
* in the call to the compiler.
*/
#include <stdlib.h>

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
Expand All @@ -23,17 +25,17 @@ const char* eraVersion(void) {


int eraVersionMajor(void) {
return PACKAGE_VERSION_MAJOR;
return (int) atol(PACKAGE_VERSION_MAJOR);
}


int eraVersionMinor(void) {
return PACKAGE_VERSION_MINOR;
return (int) atol(PACKAGE_VERSION_MINOR);
}


int eraVersionMicro(void) {
return PACKAGE_VERSION_MICRO;
return (int) atol(PACKAGE_VERSION_MICRO);
}


Expand Down

0 comments on commit 5568513

Please sign in to comment.