VM: fixed an error introduced in the last merging
This commit is contained in:
parent
0c54f216fc
commit
3ff885abe3
|
@ -31,7 +31,7 @@ protected:
|
|||
|
||||
/* nasal native functions */
|
||||
std::vector<nasal_builtin_table> native_function;
|
||||
|
||||
|
||||
/* garbage collector */
|
||||
gc ngc;
|
||||
|
||||
|
@ -320,15 +320,16 @@ public:
|
|||
flag_limited_mode = flag;
|
||||
}
|
||||
|
||||
auto get_gc_time_ms() const {
|
||||
return ngc.get_gc_time_ms();
|
||||
}
|
||||
|
||||
void set_interrupt_ptr(std::atomic<bool>* p) {
|
||||
interrupt_ptr = p;
|
||||
}
|
||||
|
||||
private:
|
||||
std::atomic<bool>* interrupt_ptr = nullptr;
|
||||
auto get_gc_time_ms() const {
|
||||
return ngc.get_gc_time_ms();
|
||||
}
|
||||
};
|
||||
|
||||
inline bool vm::boolify(const var& val) {
|
||||
|
@ -983,7 +984,7 @@ inline void vm::o_callfh() {
|
|||
for(u32 i = 0; i<func.local_size; ++i) {
|
||||
local[i] = func.local[i];
|
||||
}
|
||||
|
||||
|
||||
bool lack_arguments_flag = false;
|
||||
for(const auto& i : func.keys) {
|
||||
const auto& key = i.first;
|
||||
|
|
Loading…
Reference in New Issue