From 91a47f706d9e2ef2be66ebd1acfdd48f8ce1b6e0 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Tue, 10 Dec 2013 13:14:56 -0800 Subject: [PATCH] CRAY - Fix to allocate the correct type --- src/plugins/switch/cray/switch_cray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/switch/cray/switch_cray.c b/src/plugins/switch/cray/switch_cray.c index a62d5da4444..ebe26a361db 100644 --- a/src/plugins/switch/cray/switch_cray.c +++ b/src/plugins/switch/cray/switch_cray.c @@ -1674,7 +1674,7 @@ static int _list_str_to_array(char *list, int *cnt, int32_t **numbers) * Create an integer array of item_ptr in the same order as in the list. */ i = 0; - item_ptr = *numbers = xmalloc((*cnt) * sizeof(uint32_t)); + item_ptr = *numbers = xmalloc((*cnt) * sizeof(int32_t)); while ((str = hostlist_shift(hl))) { if (!(cptr = strpbrk(str, "0123456789"))) { error("(%s: %d: %s) Error: Node was not recognizable:" -- GitLab