]> git.ipfire.org Git - thirdparty/glibc.git/commit
test-math-iscanonical.cc: Replace bool with int
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Oct 2017 00:41:32 +0000 (17:41 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Oct 2017 22:03:10 +0000 (15:03 -0700)
commitdd3a7239fddff81ac31373d69978d7aa1902c65f
treeb6ddbac72ed4227238fe0d81230911dc537831b0
parent3b10c5d2abb0392d5ecfd865e2eb911ac109e36f
test-math-iscanonical.cc: Replace bool with int

Fix GCC 7 compilation error:

test-math-iscanonical.cc: In function ‘void check_type()’:
test-math-iscanonical.cc:33:11: error: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Werror=deprecated]
     errors++;
           ^~

Since not all non-zero error counts are errors, return errors != 0
instead.

* math/test-math-iscanonical.cc (error): Replace bool with int.
(do_test): Return errors != 0.

(cherry picked from commit cdd4155d6c527c00a89606385859984e35bd2910 and
 commit 758f1bfa2a1bccb52f1b3e97444a367d35aceaee)
ChangeLog
math/test-math-iscanonical.cc