Update partitioner.c

Sync'd with mdhim-tng