BUG: Fixed compile warning on shape.c