Use unsigned integers in multiple_device_context (#758)

Fixes a signed integer overflow issue.
2 files changed