fix f_oneway with ints

address #2670