Skip to main content

luaur_compiler/functions/
set_compile_constant_integer_64.rs

1use crate::enums::type_constant_folding::Type;
2use crate::records::constant::Constant;
3use crate::type_aliases::compile_constant::CompileConstant;
4
5pub fn set_compile_constant_integer_64(constant: CompileConstant, l: i64) {
6    let target = constant as *mut Constant;
7
8    unsafe {
9        (*target).r#type = Type::Type_Integer;
10        (*target).data.value_integer64 = l;
11    }
12}