diff --git a/nasal_vm.h b/nasal_vm.h index 59c28a1..6e4add5 100644 --- a/nasal_vm.h +++ b/nasal_vm.h @@ -282,7 +282,7 @@ void nasal_vm::opcallsort(const uint64_t* arr) { typedef std::pair op; std::vector opcall; - for(uint32_t i=0;i<=op_exit;++i) + for(uint32_t i=0;i<=op_ret;++i) opcall.push_back({i,arr[i]}); std::sort( opcall.begin(),