Update calc.c

add static int