Skip to content

Commit cc0f652

Browse files
Fix for unsigned char platforms
1 parent 7b8f2e1 commit cc0f652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ impl Device {
373373
/// ```
374374
pub fn uuid(self) -> CudaResult<[u8; 16]> {
375375
unsafe {
376-
let mut cu_uuid = CUuuid { bytes: [0i8; 16] };
376+
let mut cu_uuid = CUuuid { bytes: [0; 16] };
377377
cuDeviceGetUuid(&mut cu_uuid, self.device).to_result()?;
378378
let uuid: [u8; 16] = ::std::mem::transmute(cu_uuid.bytes);
379379
Ok(uuid)

0 commit comments

Comments
 (0)