mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-26 09:38:33 -07:00
sos_filter: fix overflows_int32 (#6976)
Some checks are pending
Build test / build (push) Waiting to run
Some checks are pending
Build test / build (push) Waiting to run
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue