diff options
author | David Skoland <david.skoland@qt.io> | 2022-12-22 11:20:42 +0100 |
---|---|---|
committer | David Skoland <david.skoland@qt.io> | 2023-02-20 13:05:03 +0100 |
commit | 6d4f01b4cd77488e711637d3c8dbdbb2741e059d (patch) | |
tree | 484688915ff1bb39ca21dfed5893535e6e49a1c6 | |
parent | 319f04b86af8e7b7db7e3d8609f55c11cfbfdafb (diff) | |
download | qtsvg-6d4f01b4cd77488e711637d3c8dbdbb2741e059d.tar.gz |
Make m_imageRenderingSet unsigned
Compiling qtsvg for webassembly, the compiler throws an error:
svgstyle.cpp:58:25: error: implicit truncation from 'int' to
a one-bit wide bit-field changes value from 1 to -1
[-Werror,-Wsingle-bit-bitfield-constant-conversion]
which makes sense, given that a signed integer of bit width 1
doesn't really add up in any meaningful way.
A simple solution is to simply make the type unsigned.
Change-Id: I49c6019bc48e98ce953f945a24cab7a32dd6f37a
Pick-to: 6.5
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
0 files changed, 0 insertions, 0 deletions