libcopybit: fix for narrowing conversion in C++11.

Change-Id: Ic73a3c94b5142d35e0912f98acaa3d0c98163e0a