BUG: Fixed complie warning on shape.c