diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-02-19 15:14:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-19 15:14:36 +0100 |
| commit | efddb8a0cbf2656100bbde6539739e18f259740d (patch) | |
| tree | a1d074a9634bff91fdefaf324ec7661749b47ccf /core/core_bind.h | |
| parent | bc395c2549009d28cdb8884f4beeebe7250de9f5 (diff) | |
| parent | 76f1f9b3c56afff2aa144468d8e33f590d6822cd (diff) | |
Merge pull request #46194 from Calinou/os-delay-no-negative
Don't allow negative values for `OS.delay_usec()`/`OS.delay_msec()`
Diffstat (limited to 'core/core_bind.h')
| -rw-r--r-- | core/core_bind.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |