Skip to content

Commit d8e4cee

Browse files
committed
Reorder structs so buffers are at the bottom
1 parent 4236421 commit d8e4cee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/isal/isal_zlibmodule.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ isal_zlib_decompress(PyObject *module, PyObject *args, PyObject *kwargs)
313313
typedef struct
314314
{
315315
PyObject_HEAD
316-
struct isal_zstream zst;
317-
int is_initialised;
318-
uint8_t * level_buf;
316+
uint8_t *level_buf;
319317
PyObject *zdict;
318+
int is_initialised;
319+
struct isal_zstream zst;
320320
} compobject;
321321

322322
static void
@@ -345,13 +345,13 @@ newcompobject()
345345
typedef struct
346346
{
347347
PyObject_HEAD
348-
struct inflate_state zst;
349348
PyObject *unused_data;
350349
PyObject *unconsumed_tail;
351-
char eof;
350+
PyObject *zdict;
352351
int is_initialised;
353352
int method_set;
354-
PyObject *zdict;
353+
char eof;
354+
struct inflate_state zst;
355355
} decompobject;
356356

357357
static void

0 commit comments

Comments
 (0)