Skip to content

Commit d84eb1c

Browse files
gabiganampvdrz
authored andcommitted
Fix generated constants: f64::INFINITY & f64::NEG_ INFINITY
#2853
1 parent 7740464 commit d84eb1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindgen/codegen/helpers.rs

+2-2
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)