Skip to content

Commit

Permalink
types: use u128 for type_id
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Castello <[email protected]>
  • Loading branch information
microhobby committed Nov 15, 2023
1 parent d80dc89 commit af506f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rnet/src/std_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ unsafe impl<T: ToNet> ToNet for Box<T> {
}
}

fn int_type_id<T: 'static>() -> u64 {
fn int_type_id<T: 'static>() -> u128 {
unsafe { std::mem::transmute(TypeId::of::<T>()) }
}

Expand Down
2 changes: 1 addition & 1 deletion rnet/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl Default for RawSlice {
pub struct RawOpaqueHandle {
pub ptr: *mut (),
pub drop_fn: Option<unsafe extern "C" fn(ptr: *mut ())>,
pub type_id: u64,
pub type_id: u128,
}

impl Default for RawOpaqueHandle {
Expand Down

0 comments on commit af506f3

Please sign in to comment.