diff --git a/vvp/compile.cc b/vvp/compile.cc index ef1e49bf9..1f8bbf024 100644 --- a/vvp/compile.cc +++ b/vvp/compile.cc @@ -639,7 +639,7 @@ struct code_label_resolv_list_s: public resolv_list_s { bool code_label_resolv_list_s::resolve(bool mes) { symbol_value_t val = sym_get_value(sym_codespace, label()); - if (val.num) { + if (val.ptr) { if (code->opcode == of_FORK) code->cptr2 = reinterpret_cast(val.ptr); else diff --git a/vvp/symbols.cc b/vvp/symbols.cc index e39920c4e..4f5a30f19 100644 --- a/vvp/symbols.cc +++ b/vvp/symbols.cc @@ -338,7 +338,7 @@ symbol_value_t symbol_table_s::find_value_(struct tree_node_*cur, assert(0); { symbol_value_t tmp; - tmp.num = 0; + tmp.ptr = 0; return tmp; } } @@ -366,7 +366,7 @@ void symbol_table_s::sym_set_value(const char*key, symbol_value_t val) symbol_value_t symbol_table_s::sym_get_value(const char*key) { symbol_value_t def; - def.num = 0; + def.ptr = 0; if (root->count == 0) { /* Handle the special case that this is the very first diff --git a/vvp/symbols.h b/vvp/symbols.h index dd21f8fb7..922bb8f08 100644 --- a/vvp/symbols.h +++ b/vvp/symbols.h @@ -49,7 +49,6 @@ typedef struct symbol_value_s { union { vvp_net_t*net; void*ptr; - unsigned long num; }; } symbol_value_t;