Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e803b7

Browse files
committed
Merge pull request aeron-io#212 from csoroiu/master
[C#]: aeron-io#211 - Correct logic for dealing with returning default values when a message extension.
2 parents db5af9c + 7e1bcf9 commit 4e803b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/csharp/Otf/ExampleTokenListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private static PrimitiveValue ConstOrNotPresentValue(Token token, int actingVers
159159

160160
if (Presence.Optional == encoding.Presence)
161161
{
162-
if (token.Version < actingVersion)
162+
if (actingVersion < token.Version)
163163
{
164164
return encoding.ApplicableNullVal;
165165
}

0 commit comments

Comments
 (0)