Skip to content
Snippets Groups Projects
Commit 91a47f70 authored by Danny Auble's avatar Danny Auble
Browse files

CRAY - Fix to allocate the correct type

parent b036a908
No related branches found
No related tags found
No related merge requests found
...@@ -1674,7 +1674,7 @@ static int _list_str_to_array(char *list, int *cnt, int32_t **numbers) ...@@ -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. * Create an integer array of item_ptr in the same order as in the list.
*/ */
i = 0; i = 0;
item_ptr = *numbers = xmalloc((*cnt) * sizeof(uint32_t)); item_ptr = *numbers = xmalloc((*cnt) * sizeof(int32_t));
while ((str = hostlist_shift(hl))) { while ((str = hostlist_shift(hl))) {
if (!(cptr = strpbrk(str, "0123456789"))) { if (!(cptr = strpbrk(str, "0123456789"))) {
error("(%s: %d: %s) Error: Node was not recognizable:" error("(%s: %d: %s) Error: Node was not recognizable:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment