Fixed a signed/unsigned mismatch warning

Change-Id: I79e30b813a6fd21cab2bc0680bb038092961b854
Merge topic 'implement_material_duality_fixes' into master

6c07c92e Fixed a signed/unsigned mismatch warning