Skip to content

Commit 99b402b

Browse files
committed
Fix unsigned/signed comp warnings
1 parent 898d6eb commit 99b402b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tinyexpr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ te_expr* te_parser::base(te_parser::state* theState)
19741974
const bool varValid{ m_varFound };
19751975
const std::set<te_variable>::const_iterator openingVar = m_currentVar;
19761976
// load any parameters
1977-
int i{ 0 }; // NOLINT
1977+
std::decay<decltype(arity)>::type i{ 0 }; // NOLINT
19781978
for (i = 0; i < arity; i++)
19791979
{
19801980
next_token(theState);
@@ -2432,7 +2432,7 @@ void te_parser::optimize(te_expr* texp)
24322432
{
24332433
const auto arity = get_arity(texp->m_value);
24342434
bool known{ true };
2435-
for (int i = 0; i < arity; ++i)
2435+
for (std::decay<decltype(arity)>::type i = 0; i < arity; ++i)
24362436
{
24372437
if (texp->m_parameters[i] == nullptr)
24382438
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy