1
0
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:
Max Prokhorov 2023-01-09 21:07:57 +03:00 committed by GitHub
parent c8dcdede34
commit df59774eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}