Skip to content

Commit

Permalink
adds break to prevent fall-through
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Sep 30, 2022
1 parent abadd46 commit 87c1426
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ref_oct.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ REF_FCN REF_STATUS ref_oct_he2_qu2(REF_INT cell_face, REF_INT *qu2) {
qu2[6] = 19;
qu2[7] = 12;
qu2[8] = 24;
break;
case 1:
qu2[0] = 1;
qu2[1] = 5;
Expand All @@ -662,6 +663,7 @@ REF_FCN REF_STATUS ref_oct_he2_qu2(REF_INT cell_face, REF_INT *qu2) {
qu2[6] = 14;
qu2[7] = 9;
qu2[8] = 22;
break;
case 2:
qu2[0] = 0;
qu2[1] = 4;
Expand All @@ -672,6 +674,7 @@ REF_FCN REF_STATUS ref_oct_he2_qu2(REF_INT cell_face, REF_INT *qu2) {
qu2[6] = 13;
qu2[7] = 8;
qu2[8] = 21;
break;
case 3:
qu2[0] = 2;
qu2[1] = 6;
Expand All @@ -682,6 +685,7 @@ REF_FCN REF_STATUS ref_oct_he2_qu2(REF_INT cell_face, REF_INT *qu2) {
qu2[6] = 15;
qu2[7] = 10;
qu2[8] = 23;
break;
case 4:
qu2[0] = 0;
qu2[1] = 1;
Expand All @@ -692,6 +696,7 @@ REF_FCN REF_STATUS ref_oct_he2_qu2(REF_INT cell_face, REF_INT *qu2) {
qu2[6] = 10;
qu2[7] = 11;
qu2[8] = 20;
break;
case 5:
qu2[0] = 4;
qu2[1] = 7;
Expand All @@ -702,6 +707,7 @@ REF_FCN REF_STATUS ref_oct_he2_qu2(REF_INT cell_face, REF_INT *qu2) {
qu2[6] = 17;
qu2[7] = 16;
qu2[8] = 25;
break;
default:
THROW("not 0-5 cell_face");
}
Expand Down

0 comments on commit 87c1426

Please sign in to comment.