Skip to content

Commit

Permalink
Fix less than operator for auto optional bool
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Nov 25, 2024
1 parent b766fcf commit 93f0d43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/freemarker/Structure.cpp.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ ${I}if (<#if resolveOptional>*</#if>lhs.${field.getterName}() != <#if resolveOpt
${I}{
<#if !field.array?? && field.typeInfo.isBoolean>
<#-- TODO[Mi-L@]: Remove once operator< for zserio::Bool is implemented in runtime! -->
${I} return static_cast<int>(<#if resolveOptional>*</#if>lhs.${field.getterName}()) < <#rt>
<#lt>static_cast<int>(<#if resolveOptional>*</#if>rhs.${field.getterName}());
${I} return static_cast<int>(<#if field.optional??>*</#if>lhs.${field.getterName}()) < <#rt>
<#lt>static_cast<int>(<#if field.optional??>*</#if>rhs.${field.getterName}());
<#else>
${I} return <#if resolveOptional>*</#if>lhs.${field.getterName}() < <#if resolveOptional>*</#if>rhs.${field.getterName}();
</#if>
Expand Down

0 comments on commit 93f0d43

Please sign in to comment.