fixed bug when -O0 the program crashes with code 01.
add `nasal_err():error(0){}` in `nasal_err.h:47` as the constructor.
This commit is contained in:
parent
0291908675
commit
51afe3dacd
|
@ -45,6 +45,7 @@ class nasal_err:public file_line
|
||||||
private:
|
private:
|
||||||
uint32_t error;
|
uint32_t error;
|
||||||
public:
|
public:
|
||||||
|
nasal_err():error(0){}
|
||||||
void err(const char* stage,const std::string& info)
|
void err(const char* stage,const std::string& info)
|
||||||
{
|
{
|
||||||
++error;
|
++error;
|
||||||
|
|
Loading…
Reference in New Issue