Added casts to uses of 'sig_atomic'

'sig_atomic' can be larger than 'int' on some platforms.
2 files changed