]> git.ipfire.org Git - thirdparty/zstd.git/commit
strengthened conditions for using workplace into fse table space
authorYann Collet <cyan@fb.com>
Fri, 7 Sep 2018 00:54:13 +0000 (17:54 -0700)
committerYann Collet <cyan@fb.com>
Fri, 7 Sep 2018 00:54:13 +0000 (17:54 -0700)
commitf97ca36eab4e3aadf2666a6130d37680a4f6a7d3
tree6fe375f52d0c1e3a460a70f85538540a16ea49a4
parentb036b9a177d6dfc9631caaa823cce1de68c1f019
strengthened conditions for using workplace into fse table space

ensure that the structure layout is as expected.
will trigger an error if it changes in the future.

Another solution would be to use a union,
this would be cleaner and get rid of these static asserts.

However, in order to keep the current code unmodified,
it would be necessary to use an un-named unions.
And apparently, un-named unions are only possible on "recent" compilers (C99+).
lib/decompress/zstd_decompress.c