commit | ebd8a2a4f6472f55a2ae21ba7562e91b79225341 | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Fri Mar 05 08:53:29 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 05 23:41:06 2021 +0000 |
tree | a6d12b623b3528b8134373eb7a7a7d3683cf3e29 | |
parent | 752d7d3459ac4f74e2eed8ab5349d774d1f99beb [diff] |
pw_sync_freertos: fix kCountingSemaphoreMaxValue constant Change-Id: Ia2d4eccf34da39e378d8a734d226fb24a8507a76 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/35881 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Ewout van Bekkum <ewout@google.com>
diff --git a/pw_sync_freertos/public/pw_sync_freertos/counting_semaphore_native.h b/pw_sync_freertos/public/pw_sync_freertos/counting_semaphore_native.h index 4e1f06f..8d6ba75 100644 --- a/pw_sync_freertos/public/pw_sync_freertos/counting_semaphore_native.h +++ b/pw_sync_freertos/public/pw_sync_freertos/counting_semaphore_native.h
@@ -26,7 +26,7 @@ }; using NativeCountingSemaphoreHandle = NativeCountingSemaphore&; -inline constexpr ptrdiff_t kBinarySemaphoreMaxValue = +inline constexpr ptrdiff_t kCountingSemaphoreMaxValue = std::numeric_limits<ptrdiff_t>::max() < std::numeric_limits<UBaseType_t>::max() ? std::numeric_limits<ptrdiff_t>::max()