lvstring.h: overflow issue when building lvtinydom.cpp (ndk r8e)
A cross-platform XML/CSS based eBook reader
Brought to you by:
buggins
The compilation error that occurs is:
jni/../../crengine/src/../include/lvstring.h: In member function 'virtual void ldomDocumentWriterFilter::appendStyle(const lChar16*)':
jni/../../crengine/src/../include/lvstring.h:589:40: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow]
The attached patch fixes the issue for all non-mips target. For the latter, I could unfortunately not find a solution and had to disable it locally.
fixed