Add cast to type for constants to avoid mis-typing.
This commit is contained in:
parent
f1d85ae99c
commit
6126f0cb10
@ -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