From 76f1f9b3c56afff2aa144468d8e33f590d6822cd Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 18 Feb 2021 21:59:09 +0100 Subject: Don't allow negative values for `OS.delay_usec()`/`OS.delay_msec()` This closes #46190. --- core/core_bind.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/core_bind.h') diff --git a/core/core_bind.h b/core/core_bind.h index 435269dac5..8a4885b82b 100644 --- a/core/core_bind.h +++ b/core/core_bind.h @@ -211,8 +211,8 @@ public: uint64_t get_static_memory_usage() const; uint64_t get_static_memory_peak_usage() const; - void delay_usec(uint32_t p_usec) const; - void delay_msec(uint32_t p_msec) const; + void delay_usec(int p_usec) const; + void delay_msec(int p_msec) const; uint32_t get_ticks_msec() const; uint64_t get_ticks_usec() const; -- cgit v1.2.3