🐛 visual changement & bug fix in test/json.nas & optimize test/bp.nas

This commit is contained in:
ValKmjolnir
2022-05-30 21:27:24 +08:00
parent 882ecac100
commit ab37495960
4 changed files with 28 additions and 12 deletions
+2 -2
View File
@@ -363,7 +363,7 @@ void nasal_vm::opcallsort(const uint64_t* arr)
opcall.end(),
[](op& a,op& b){return a.second>b.second;}
);
std::cout<<"\noperands call info:";
std::cout<<"\noperands call info";
uint64_t total=0;
for(auto& i:opcall)
{
@@ -386,7 +386,7 @@ void nasal_vm::die(std::string str)
inline bool nasal_vm::condition(nasal_ref val)
{
if(val.type==vm_num)
return val.value.num;
return val.num();
else if(val.type==vm_str)
{
double num=str2num(val.str().c_str());