mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-24 05:25:45 +08:00
📝 update documents
This commit is contained in:
@@ -64,7 +64,7 @@ var set_new_ghost(var* args, usize size, gc* ngc) {
|
||||
return nil;
|
||||
}
|
||||
f64 num = args[1].num();
|
||||
*((u32*)res.ghost().pointer) = static_cast<u32>(num);
|
||||
*(reinterpret_cast<u32*>(res.ghost().pointer)) = static_cast<u32>(num);
|
||||
std::cout << "set_new_ghost: successfully set ghost = " << num << "\n";
|
||||
return nil;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user