fix double slash comment and typecast