Anonymous - 2007-02-10

When compiling tinyxpath on a pure 64 bits system, gcc stops with the following message:

node_set.cpp: In function ‘int TinyXPath::i_compare_ptr_and_flag(const void*, const void*)’:
node_set.cpp:266: error: cast from ‘void*’ to ‘int’ loses precision
node_set.cpp:266: error: cast from ‘void*’ to ‘int’ loses precision

This is because the x86_64 ABI specifies that any pointer is 8 bytes wide while an int is 4 bytes wide. I wrote a patch (very simple), but there's no bug tracker for this project, so I thought it would be best to just leave a message here.