Skip to content

Commit

Permalink
Added constant size to array cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBlueStone committed Oct 13, 2023
1 parent a26b7fe commit 52eeff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inst.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ LRESULT CALLBACK InstTestWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPa

for (int i = 0; i < 12; i++) {
const int x =
(int[]){ 6, 5, 6, 5, 6, 6, 5, 6, 5, 6, 5, 6 }[i]
(int[12]){ 6, 5, 6, 5, 6, 6, 5, 6, 5, 6, 5, 6 }[i]
+ 20 * (i + 1);
TextOut(hdc, scale_x(x), 0,
"CCDDEFFGGAAB" + i, 1);
Expand Down

0 comments on commit 52eeff7

Please sign in to comment.