Warning for casting int

Signed-off-by: John Montiel <john@montiel.org>