Add cast to type for constants to avoid mis-typing.
This commit is contained in:
parent
7ceb624ec1
commit
d1d3aaf374
@ -11,7 +11,7 @@ mod test {
|
|||||||
pub mod special_array_package {
|
pub mod special_array_package {
|
||||||
use rhai::{Array, INT};
|
use rhai::{Array, INT};
|
||||||
|
|
||||||
pub const MYSTIC_NUMBER: INT = 42 as INT;
|
pub const MYSTIC_NUMBER: INT = 42;
|
||||||
|
|
||||||
#[cfg(not(feature = "no_object"))]
|
#[cfg(not(feature = "no_object"))]
|
||||||
pub mod feature {
|
pub mod feature {
|
||||||
|
Loading…
Reference in New Issue
Block a user