In diff.hpp
#define DIFF_EQUAL_SIG_HASH_CRC 1
#define DIFF_EQUAL_SIG_HASH_CRC_STR 2
I think they should switch the value with each other. Then,
In diff.cpp sig_equal()
if (type <= DIFF_EQUAL_SIG_HASH_CRC)
This will cover DIFF_EQUAL_SIG_HASH_CRC_STR. That'll be right.