Commit Graph

3 Commits (master)

Author SHA1 Message Date
Tim Stack 2da7361097 [gantt] render opid descriptions correctly 11 months ago
Havard Eidnes 0b51752974 ArenaAlloc/arenaallocimpl.h: avoid shift overflow on 32-bit hosts.
Use the constants defined by <stdint.h> to avoid right-shift by 32
on a 32-bit host by comparing SIZE_MAX to UINT32_MAX, since `value`
is a size_t.

Found by building on NetBSD/macppc with -Wshift-count-overflow
(which is default on in the pkgsrc setup, which this is from).

./third-party/ArenaAlloc/arenaallocimpl.h:111:22: warning: right shift count >=
width of type [-Wshift-count-overflow]
  111 |       value |= value >> 32;
      |                ~~~~~~^~~~~
1 year ago
Timothy Stack f9f797fc9d [logfile_sub_source] add log message watch expressions
Fixes #539
2 years ago