https://bugs.kde.org/show_bug.cgi?id=431436

            Bug ID: 431436
           Summary: 4.0.1.0 fails to build on 32bit openSUSE
           Product: SeExpr
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: krita-bugs-n...@kde.org
          Reporter: wba...@tmo.at
  Target Milestone: ---

Compiler errors:
/home/abuild/rpmbuild/BUILD/kseexpr-4.0.1.0/src/KSeExprUI/ControlSpec.cpp: In
constructor 'KSeExpr::ExprScalarAssignSpec::ExprScalarAssignSpec(const
KSeExpr::ExprAssignNode&)':
/home/abuild/rpmbuild/BUILD/kseexpr-4.0.1.0/src/KSeExprUI/ControlSpec.cpp:89:66:
error: no matching function for call to 'parseRangeComment(std::string&,
float&, float&)'
   89 |         if (KSeExpr::Utils::parseRangeComment(comment, fmin, fmax)) {
      |                                                                  ^

/home/abuild/rpmbuild/BUILD/kseexpr-4.0.1.0/src/KSeExprUI/Editable.cpp: In
member function 'virtual bool NumberEditable::parseComment(const string&)':
/home/abuild/rpmbuild/BUILD/kseexpr-4.0.1.0/src/KSeExprUI/Editable.cpp:51:66:
error: no matching function for call to 'parseRangeComment(const string&,
float&, float&)'
   51 |         if (KSeExpr::Utils::parseRangeComment(comment, fmin, fmax)) {
      |                                                                  ^

Obviously the problem is that KSeExpr::Utils::parseRangeComment is called with
`float` parameters, but only accepts `float_t` which apparently is defined
different to `float` in 32bit openSUSE Tumbleweed.

Changing `float_t` to `float`, i.e.:
sed -i 's/float_t/float/g' src/KSeExprUI/Utils.cpp
sed -i 's/float_t/float/g' src/KSeExprUI/Utils.h
 fixes the problem, it also still builds fine on 64bit.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to