__setDR: Assertion `!"setDR ERROR"' failed

One of my colleagues suggested the following:

From a quick look at the code, I could imagine a compiler that defaults to “char” to unsigned could trigger this assert. If this is what’s happening, then perhaps adding “signed” to the declaration of “dirty” in “btreenode” in “btreepriv.h” might help. Or perhaps there could be issues with the struct being declared as packed?

PS: please provide this courtesy when cross-posting: