Update calc.c

add static int
Merge pull request #1 from AlexPozdnyakov/patch-1

Update calc.c