mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02:00
sos_filter: fix overflows_int32 (#6976)
Modify the inline function overflows_int32 to static inline Inline functions cannot be debugged in -O mode https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653 Signed-off-by: Findlay Feng <i@fengch.me>
This commit is contained in:
parent
697c6e8d28
commit
993cec0891
@ -29,7 +29,7 @@ struct sos_filter {
|
||||
struct sos_filter_section filter[0];
|
||||
};
|
||||
|
||||
inline uint8_t
|
||||
static inline uint8_t
|
||||
overflows_int32(int64_t value) {
|
||||
return value > (int64_t)INT32_MAX || value < (int64_t)INT32_MIN;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user