Fix builds.

This commit is contained in:
Stephen Chung
2021-07-04 16:51:05 +08:00
parent 694ac5b5bd
commit 4adc044c79
3 changed files with 48 additions and 37 deletions

View File

@@ -173,6 +173,10 @@ mod number_formatting {
pub fn int_to_octal(value: INT) -> ImmutableString {
to_octal(value)
}
#[rhai_fn(name = "to_binary")]
pub fn int_to_binary(value: INT) -> ImmutableString {
to_binary(value)
}
#[cfg(not(feature = "only_i32"))]
#[cfg(not(feature = "only_i64"))]