add int(xx) for rm warning in g++