Skip to content

Commit f6c3b45

Browse files
committed
fix(c_api): use correct cfg for pointer width
1 parent b3b1604 commit f6c3b45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,13 @@ unmangle!(
297297
}
298298
);
299299

300-
#[cfg(target_bit_width = "64")]
300+
#[cfg(target_pointer_width = "64")]
301301
#[inline]
302302
fn buffer_too_large(source_len: c_ulong, dest_len: c_ulong) -> bool {
303303
(source_len | dest_len) > 0xFFFFFFFF
304304
}
305305

306-
#[cfg(not(target_bit_width = "64"))]
306+
#[cfg(not(target_pointer_width = "64"))]
307307
#[inline]
308308
fn buffer_too_large(_source_len: c_ulong, _dest_len: c_ulong) -> bool {
309309
false

0 commit comments

Comments
 (0)