Bug 72

Summary: SR_GHZ et al don't work properly for large numbers
Product: libsigrok Reporter: Uwe Hermann <uwe>
Component: PortabilityAssignee: Uwe Hermann <uwe>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Uwe Hermann 2013-03-09 11:02:39 CET
SR_GHZ and the other macros need a ULL suffix for the numbers, otherwise integer overflows can happen and the result will not be correct.

E.g. SR_GHZ(5) will overflow without this.
Comment 1 Uwe Hermann 2013-03-09 12:26:21 CET
Fixed in 0b4b41eed84be29e21b0e65c8072b546b4fdd37e.