X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fstrnatcmp.hpp;h=eaa73608e956aedadc198bd05b51b42a3a4eb400;hp=0295a5c520f56b5a0df1269ae53c18a361468648;hb=72486b789078f024e4f3404f81118c03b03e2b70;hpb=cafe470ed977ab3bff1a865439a261c9f0eb397d diff --git a/pv/strnatcmp.hpp b/pv/strnatcmp.hpp index 0295a5c5..eaa73608 100644 --- a/pv/strnatcmp.hpp +++ b/pv/strnatcmp.hpp @@ -27,8 +27,8 @@ #ifndef PULSEVIEW_PV_STRNATCMP_HPP #define PULSEVIEW_PV_STRNATCMP_HPP -#include /* size_t */ #include +#include /* size_t */ #include using std::string; @@ -89,7 +89,7 @@ static int strnatcmp0(char const *a, char const *b, int fold_case) ai = bi = 0; - while (1) { + while (true) { ca = a[ai]; cb = b[bi];