Skip to content

Commit 3dd900f

Browse files
committed
load_abc: balance #pragma pack(1)
1 parent 929d8da commit 3dd900f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/load_abc.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
// because 2/192 = 1/96 and 3/192 = 1/64
6767
#define RESOLUTION192
6868

69-
#pragma pack(1)
70-
7169
/**********************************************************************/
7270

71+
#pragma pack(1)
72+
7373
typedef enum {
7474
note,
7575
octave,
@@ -170,8 +170,6 @@ typedef struct _ABCMACRO
170170
char *n;
171171
} ABCMACRO;
172172

173-
/**********************************************************************/
174-
175173
typedef struct _ABCHANDLE
176174
{
177175
ABCMACRO *macro;
@@ -197,6 +195,10 @@ typedef struct _ABCHANDLE
197195
uint32_t tracktime;
198196
} ABCHANDLE;
199197

198+
#pragma pack()
199+
200+
/**********************************************************************/
201+
200202
static int global_voiceno, global_octave_shift, global_tempo_factor, global_tempo_divider;
201203
static char global_part;
202204
static uint32_t global_songstart;

0 commit comments

Comments
 (0)