Fix compile warnings on RHEL5
This commit is contained in:
parent
77ebfcacb9
commit
fd3086f0a9
|
|
@ -538,7 +538,7 @@ __vpiDecConst::__vpiDecConst(int val)
|
||||||
}
|
}
|
||||||
|
|
||||||
__vpiDecConst::__vpiDecConst(const __vpiDecConst&that)
|
__vpiDecConst::__vpiDecConst(const __vpiDecConst&that)
|
||||||
: value(that.value)
|
: __vpiHandle(), value(that.value)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,8 @@ void __vpiDarrayVar::put_word_value(struct __vpiArrayWord*word, p_vpi_value vp,
|
||||||
case vpiIntVal:
|
case vpiIntVal:
|
||||||
{
|
{
|
||||||
vvp_vector4_t vec;
|
vvp_vector4_t vec;
|
||||||
vec.setarray(0, 8 * sizeof(vp->value.integer), (unsigned long*)(&vp->value.integer));
|
unsigned long val = vp->value.integer;
|
||||||
|
vec.setarray(0, 8 * sizeof(vp->value.integer), &val);
|
||||||
aobj->set_word(index, vec);
|
aobj->set_word(index, vec);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -540,6 +540,7 @@ extern vpiHandle vpip_make_string_var(const char*name, vvp_net_t*net);
|
||||||
|
|
||||||
struct __vpiArrayBase {
|
struct __vpiArrayBase {
|
||||||
__vpiArrayBase() : vals_words(NULL) {}
|
__vpiArrayBase() : vals_words(NULL) {}
|
||||||
|
virtual ~__vpiArrayBase() {}
|
||||||
|
|
||||||
virtual unsigned get_size(void) const = 0;
|
virtual unsigned get_size(void) const = 0;
|
||||||
virtual vpiHandle get_left_range() = 0;
|
virtual vpiHandle get_left_range() = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue