diff --git a/README.md b/README.md index a5428a50..6ccfc250 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Before getting started, make sure you have the following installed: # ====================== [wrap-git] url = https://github.com/fossillogic/fossil-test.git - revision = v1.0.5 + revision = v1.0.6 [provide] fossil-test = fossil_test_dep diff --git a/code/logic/fossil/_common/platform.h b/code/logic/fossil/_common/platform.h index c31b2c84..5e3feccd 100644 --- a/code/logic/fossil/_common/platform.h +++ b/code/logic/fossil/_common/platform.h @@ -18,13 +18,12 @@ #include "common.h" // for introspection data #ifdef __cplusplus -extern "C" -{ +extern "C" { #endif // Utility function to get the architecture static inline char* _fossil_test_get_architecture(void) { - char* arch = malloc(10 * sizeof(char)); + char* arch = (char*)malloc(10 * sizeof(char)); // Explicit cast for C++ if (arch == NULL) { return NULL; } @@ -62,7 +61,7 @@ static inline char* _fossil_test_get_architecture(void) { // Utility function to get the OS name static inline char* _fossil_test_get_os_name(void) { - char* os_name = malloc(20 * sizeof(char)); + char* os_name = (char*)malloc(20 * sizeof(char)); // Explicit cast for C++ if (os_name == NULL) { return NULL; } @@ -95,7 +94,7 @@ static inline int _fossil_test_get_num_cpus(void) { #elif defined(__APPLE__) int num_cpus; size_t size = sizeof(num_cpus); - if (sysctlbyname("hw.ncpu", &num_cpus, &size, xnull, 0) == 0) { + if (sysctlbyname("hw.ncpu", &num_cpus, &size, NULL, 0) == 0) { return num_cpus; } else { return 1; // Default to 1 if unable to get the number of CPUs diff --git a/meson.build b/meson.build index a2e553d7..66f836ec 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project('Fossil Test', 'c', 'cpp', meson_version: '>=1.3.0', license: 'MPL-2.0', - version: '1.0.5', + version: '1.0.6', default_options: ['c_std=c18', 'cpp_std=c++20']) subdir('code')