Skip to content

Commit

Permalink
Avoid empty initializers to help syntactically challenged compilers
Browse files Browse the repository at this point in the history
The last field is an array, so at least give it the initial 0 (which it will
replicate onto the remaining slots)
  • Loading branch information
niner committed Nov 30, 2019
1 parent bed44f1 commit 795b320
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/core/ops.c
Expand Up @@ -13,7 +13,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_const_i8,
Expand Down Expand Up @@ -783,7 +783,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_eq_i,
Expand Down Expand Up @@ -5165,7 +5165,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
1,
0,
{ }
{ 0 }
},
{
MVM_OP_usecompilerhllconfig,
Expand All @@ -5179,7 +5179,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
1,
0,
{ }
{ 0 }
},
{
MVM_OP_iter,
Expand Down Expand Up @@ -7825,7 +7825,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_getuniname,
Expand Down Expand Up @@ -7979,7 +7979,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_currentthread,
Expand Down Expand Up @@ -8525,7 +8525,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_nativecallcast,
Expand Down Expand Up @@ -8637,7 +8637,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_nativecallglobal,
Expand Down Expand Up @@ -10877,7 +10877,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_coveragecontrol,
Expand Down Expand Up @@ -12739,7 +12739,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_prof_enterspesh,
Expand All @@ -12753,7 +12753,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_prof_enterinline,
Expand Down Expand Up @@ -12795,7 +12795,7 @@ static const MVMOpInfo MVM_op_infos[] = {
0,
0,
0,
{ }
{ 0 }
},
{
MVM_OP_prof_allocated,
Expand Down
2 changes: 1 addition & 1 deletion tools/update_ops.p6
Expand Up @@ -438,7 +438,7 @@ sub opcode_details(@ops) {
if $op.operands {
take " \{ $op.operands.map(&operand_flags).join(', ') }";
}
else { take " \{ }"; }
else { take " \{ 0 }"; }
take " },"
}
take "};\n";
Expand Down

0 comments on commit 795b320

Please sign in to comment.