Commit cba56542 authored by Jonathan Jenkins's avatar Jonathan Jenkins

Apply modulus when computing lpid from offset (needed in codes-net)

parent 0a31ef96
......@@ -146,7 +146,7 @@ void codes_mapping_get_lp_id(char* grp_name, char* lp_type_name, int rep_id, int
for(lpt = 0; lpt < lp_types_count; lpt++)
lpcount += lpconf.lpgroups[grp].lptypes[lpt].count;
}
*gid = lpcount + offset;
*gid = lpcount + offset % count_for_this_lpt;
}
int codes_mapping_get_lp_global_rel_id(tw_lpid gid){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment