Fix warnings in example.c.
Fix warnings in example.c.

- Keep cast points const.
- int literals with bit 31 set should be unsigned.
- Remove `default` label from a switch with all cases covered.

silentbicycle/greatest,silentbicycle/greatest