api:cpp: use int instead of in64