Skip to content

Commit 4925d36

Browse files
authored
Update scan.rs
1 parent 6769a6d commit 4925d36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unity-macro/src/scan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl ScanInfo {
4343
static OFFSETS: #ctx::LazyLock<usize> = #ctx::LazyLock::new(|| {
4444
let method = &INFO;
4545
let text = #ctx::scan::get_text();
46-
unsafe { method.method_ptr.sub_ptr(text.as_ptr())}
46+
unsafe { method.method_ptr.offset_from(text.as_ptr() as usize)}
4747
});
4848
*OFFSETS
4949
}

0 commit comments

Comments
 (0)