di_blocks needs to be unsigned so conversion to 64-bit size works (from karels)