Bug in polymake 2.10
Posted: 28 Oct 2011, 14:42
Hi there,
since I couldn't find any public bug tracker for polymake, nor any other information as to how to report bugs, except for a pointer to the forum in the "AQ" section, I am reporting this here now:
In polymake 2.10, file include/core/polymake/internal/sparse2d_ruler.h:151 says the following:
I was compiling polymake using clang, which tends to give better diagnostics than GCC. It warned about the expression "-diff>m" being unused. Indeed, this code looks incorrect to me. I guess this was meant instead:
Personally, I would avoid such needlessly "clever" code and just write
which is clear and not as prone to hard-to-spot errors.
since I couldn't find any public bug tracker for polymake, nor any other information as to how to report bugs, except for a pointer to the forum in the "AQ" section, I am reporting this here now:
In polymake 2.10, file include/core/polymake/internal/sparse2d_ruler.h:151 says the following:
Code: Select all
if (diff<=0 ? -diff>m : (n_alloc=r->_alloc_size+std::max(diff, m)), true) {
Code: Select all
if (diff<=0 ? -diff>m : ((n_alloc=r->_alloc_size+std::max(diff, m)), true)) {
Code: Select all
if (diff<=0 ? -diff>m : true) {
if (diff > 0)
n_alloc=r->_alloc_size+std::max(diff, m);