Fix copybit

Compiler was throwing warning when it tried to store an unsigned int inside an int.

So cast the unsigned to int.

Change-Id: I42b990939de3948615e7b6599aed15918b1ec099