DigiShield: fix ComputeMinWork (thanks @orphanate!)