Opened 10 years ago

Closed 10 years ago

#322 closed enhancement (fixed)

Shift overflow

Reported by: kaiux Owned by: salcock
Priority: minor Milestone:
Component: libtrace-library Version: 3.0
Keywords: Cc:

Description

Build a simple code with clang gives the following warning:

/usr/local/include/libtrace.h:376:22: warning: signed shift result (0x100000000) requires 34 bits to represent, but 'int' only has 32 bits

[-Wshift-overflow]

TRACE_RT_LAST = (2<<31)

~

Change History (1)

comment:1 Changed 10 years ago by salcock

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed in r1763 - thanks for reporting that!

Note: See TracTickets for help on using tickets.