mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 08:20:27 +00:00
Catch unitialized value valgrind error. Probably has no effect,
but fixed to shut up valgrind.
This commit is contained in:
parent
eceb6e5a77
commit
114dda8294
@ -121,6 +121,7 @@ DstValue dst_wrap_boolean(int x) {
|
|||||||
DstValue dst_wrap_##NAME(TYPE x) {\
|
DstValue dst_wrap_##NAME(TYPE x) {\
|
||||||
DstValue y;\
|
DstValue y;\
|
||||||
y.type = DTYPE;\
|
y.type = DTYPE;\
|
||||||
|
y.as.u64 = 0; /* zero other bits in case of 32 bit integer */ \
|
||||||
y.as.UM = x;\
|
y.as.UM = x;\
|
||||||
return y;\
|
return y;\
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user