mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Pointer<->Int casts are not constexpr (#8796)
This commit is contained in:
parent
c8dcdede34
commit
df59774eb5
@ -23,9 +23,8 @@
|
||||
|
||||
#if defined(CORE_MOCK)
|
||||
|
||||
constexpr bool __byteAddressable(const void* addr)
|
||||
constexpr bool __byteAddressable(const void*)
|
||||
{
|
||||
(void)addr;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -34,7 +33,7 @@ constexpr bool __byteAddressable(const void* addr)
|
||||
#include <sys/config.h>
|
||||
|
||||
// returns true when addr can be used without "pgm_" functions or non32xfer service
|
||||
constexpr bool __byteAddressable(const void* addr)
|
||||
inline bool __byteAddressable(const void* addr)
|
||||
{
|
||||
return addr < (const void*)(XCHAL_DATARAM0_VADDR + XCHAL_DATARAM0_SIZE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user