ruby: add default ctor for MachineID type
not all uses of MachineID initialize its fields, so here we add a default ctor.
This commit is contained in:
parent
0799600686
commit
f82418acef
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@
|
||||||
|
|
||||||
struct MachineID
|
struct MachineID
|
||||||
{
|
{
|
||||||
|
MachineID() : type(MachineType_NULL), num(0) { }
|
||||||
|
MachineID(MachineType mach_type, NodeID node_id)
|
||||||
|
: type(mach_type), num(node_id) { }
|
||||||
|
|
||||||
MachineType type;
|
MachineType type;
|
||||||
//! range: 0 ... number of this machine's components in system - 1
|
//! range: 0 ... number of this machine's components in system - 1
|
||||||
NodeID num;
|
NodeID num;
|
||||||
|
|
Loading…
Reference in a new issue