Skip to content

Commit 7491c74

Browse files
authored
Fix generated constants: f64::INFINITY & f64::NEG_ INFINITY
rust-lang#2853
1 parent cf9b02f commit 7491c74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindgen/codegen/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ pub(crate) mod ast_ty {
322322
if f.is_infinite() {
323323
return Ok(if f.is_sign_positive() {
324324
quote! {
325-
::#prefix::f64::INFINITY
325+
f64::INFINITY
326326
}
327327
} else {
328328
quote! {
329-
::#prefix::f64::NEG_INFINITY
329+
f64::NEG_INFINITY
330330
}
331331
});
332332
}

0 commit comments

Comments
 (0)