if (capacity % 2 > requested_size){
I expect that "%" should really be "/".
Jason.
Thanks for your help