Skip to content

Commit 5b1fbdd

Browse files
committed
Use static type instead of decltype
1 parent 2d2ec71 commit 5b1fbdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isql/FrontendLexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ std::variant<FrontendLexer::SingleStatement, FrontendLexer::IncompleteTokenError
142142

143143
while (pos < end)
144144
{
145-
if (static_cast<decltype(term.length())>(end - pos) >= term.length() && std::equal(term.begin(), term.end(), pos))
145+
if (static_cast<FB_SIZE_T>(end - pos) >= term.length() && std::equal(term.begin(), term.end(), pos))
146146
{
147147
const auto initialStatement = std::string(buffer.cbegin(), pos);
148148
pos += term.length();

0 commit comments

Comments
 (0)