Update device.cc

should be const declared array size or it wont compile