Fix issues with calculation of two's complement in DB directive values