unix: Fix casting issue, int to small int object.