Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions code/logic/fossil/_common/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -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')