Fixed compiler error, and cleared overflow warning for  src/ByteArray.h