Skip to content

Commit fd28d48

Browse files
committed
Add comment on struct ordering
1 parent d00502c commit fd28d48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/isal/isal_zlibmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ typedef struct
322322
uint8_t *level_buf;
323323
PyObject *zdict;
324324
int is_initialised;
325+
// isal_zstream should be at the bottom as it contains buffers inside the struct.
325326
struct isal_zstream zst;
326327
} compobject;
327328

@@ -357,6 +358,7 @@ typedef struct
357358
int is_initialised;
358359
int method_set;
359360
char eof;
361+
// inflate_state should be at the bottom as it contains buffers inside the struct.
360362
struct inflate_state zst;
361363
} decompobject;
362364

0 commit comments

Comments
 (0)