copybit: Fix type conversion error for GCC 4.7
GCC 4.7 has stricter type conversion rules