]> wimlib.net Git - wimlib/commit
avl_tree.h: avoid bad function pointer cast
authorEric Biggers <ebiggers3@gmail.com>
Sun, 29 Jan 2017 05:18:21 +0000 (21:18 -0800)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 19 Mar 2017 19:59:25 +0000 (12:59 -0700)
commit8c27aef8836800bd83d92cad6b994ed1fea5891e
treea3dfbc95e4e3bb2a5f3c38b81a14afbfb42bce12
parentfc77cae5bad7d23165ed96121134fcc11b1b7d0a
avl_tree.h: avoid bad function pointer cast

Casting the type of the 'cmp' function, while under normal circumstances
compiled correctly, was not technically correct and was not compatible
with some control flow integrity (CFI) implementations.
include/wimlib/avl_tree.h