npos is not int

on linux, string::npos can be unsigned long (64 bit)