diff --git a/src/plugins/select/bluegene/block_allocator/block_allocator.c b/src/plugins/select/bluegene/block_allocator/block_allocator.c index c623eac352cb882b367766697520983e4c61dd07..546220b761c022b352c497c5919d8341f7d3df93 100644 --- a/src/plugins/select/bluegene/block_allocator/block_allocator.c +++ b/src/plugins/select/bluegene/block_allocator/block_allocator.c @@ -2164,8 +2164,9 @@ extern char *find_bp_rack_mid(char* xyz) ba_bp_map_t *bp_map = NULL; ListIterator itr; int number; - uint16_t coord[cluster_dims]; - uint16_t len = strlen(xyz); + int coord[cluster_dims]; + int len = strlen(xyz); + len -= 3; if(len<0) return NULL; diff --git a/src/plugins/select/bluegene/plugin/bg_switch_connections.c b/src/plugins/select/bluegene/plugin/bg_switch_connections.c index 290b18b0c82082ee943101d9f20ffe7cbd098a6f..bd8c979ce2188596d5ef2bcc6b2e36fcead3bcd4 100644 --- a/src/plugins/select/bluegene/plugin/bg_switch_connections.c +++ b/src/plugins/select/bluegene/plugin/bg_switch_connections.c @@ -43,7 +43,7 @@ #ifdef HAVE_BG_FILES static int _get_bp_by_location(my_bluegene_t* my_bg, - int* curr_coord, + uint16_t* curr_coord, rm_BP_t** bp); static int _get_switches_by_bpid(my_bluegene_t* my_bg, const char *bpid, rm_switch_t **curr_switch); @@ -60,7 +60,7 @@ static int _used_switches(ba_node_t *ba_node); * "NextBP" goes to, but we don't know, so we have to do this. */ #ifdef HAVE_BG_FILES -static int _get_bp_by_location(my_bluegene_t* my_bg, int* curr_coord, +static int _get_bp_by_location(my_bluegene_t* my_bg, uint16_t* curr_coord, rm_BP_t** bp) { static int bp_num = 0;