Skip to content

Commit a755b13

Browse files
author
John Wellbelove
committed
Sync to 20.43.1
1 parent 54ed03d commit a755b13

File tree

186 files changed

+21618
-2598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+21618
-2598
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish ETL (Arduino) to PlatformIO
2+
3+
on:
4+
release:
5+
types: [published] # Trigger only when a GitHub release is published
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.x"
19+
20+
- name: Install PlatformIO
21+
run: pip install platformio
22+
23+
- name: Publish to PlatformIO Registry
24+
run: pio package publish --owner etlcpp --non-interactive
25+
env:
26+
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_TOKEN }}

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Embedded Template Library ETL",
3-
"version": "20.40.0",
3+
"version": "20.43.1",
44
"authors": {
55
"name": "John Wellbelove",
66
"email": "[email protected]"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Embedded Template Library ETL
2-
version=20.40.0
2+
version=20.43.1
33
author= John Wellbelove <[email protected]>
44
maintainer=John Wellbelove <[email protected]>
55
license=MIT

src/etl/absolute.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,14 @@ namespace etl
6464
// For signed types.
6565
// Returns the result as the unsigned type.
6666
//***************************************************************************
67-
#if ETL_USING_CPP11
68-
template <typename T, typename TReturn = typename etl::make_unsigned<T>::type>
69-
#else
70-
template <typename T, typename TReturn>
71-
#endif
67+
template <typename T>
7268
ETL_NODISCARD
7369
ETL_CONSTEXPR
74-
typename etl::enable_if<etl::is_signed<T>::value, TReturn>::type
70+
typename etl::enable_if<etl::is_signed<T>::value, typename etl::make_unsigned<T>::type>::type
7571
absolute_unsigned(T value) ETL_NOEXCEPT
7672
{
73+
typedef typename etl::make_unsigned<T>::type TReturn;
74+
7775
return (value == etl::integral_limits<T>::min) ? (etl::integral_limits<TReturn>::max / 2U) + 1U
7876
: (value < T(0)) ? TReturn(-value) : TReturn(value);
7977
}

0 commit comments

Comments
 (0)