pmix/pmix_pointer_casts_2.patch

14 lines
408 B
Diff
Raw Normal View History

diff --git a/test/test_server.c b/test/test_server.c
index 981a6604..ee91afd9 100644
--- a/test/test_server.c
+++ b/test/test_server.c
@@ -195,7 +195,7 @@ static void server_unpack_procs(char *buf, size_t size)
size_t ltasks, ntasks;
int server_id;
- server_id = *ptr;
+ server_id = *(int *)ptr;
ptr += sizeof(int);
nspace = ptr;