copybit: Fix type conversion error for GCC 4.7

Change-Id: I7f99986b4cafd9fbb384de8956d65d43d4b60e01