Skip to content

Commit

Permalink
Fix WSL Crash (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 authored Nov 11, 2023
1 parent 00157ef commit fefbf4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/posix/system_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ size_t aws_system_info_processor_count(void) {

uint16_t aws_get_cpu_group_count(void) {
if (g_numa_num_configured_nodes_ptr) {
return (uint16_t)g_numa_num_configured_nodes_ptr();
return aws_max_u16(1, (uint16_t)g_numa_num_configured_nodes_ptr());
}

return 1U;
Expand Down

0 comments on commit fefbf4b

Please sign in to comment.