Skip to content

Remove usage of uint (fixes `package_py*` CI)

Karol Krizka requested to merge kk_fixpypack into devel

The package_py* CI jobs currently fail with errors like this:

  /tmp/pip-req-build-3q5p8c_v/src/libDevCom/HIH4000.cpp: In member function 'virtual void HIH4000::read()':
  /tmp/pip-req-build-3q5p8c_v/src/libDevCom/HIH4000.cpp:38:11: error: 'uint' does not name a type; did you mean 'rint'?
     38 |     const uint navg = 5;
        |           ^~~~
        |           rint

The uint typedef is defined in types.h. We don't include that header directly. I assume it used to be indirectly included in some of the other headers and not longer is.

This changes uint to more common std::size_t, uint32_t and unsigned as appropriate to usage.

Merge request reports