Skip to content

Commit 0bfb0f8

Browse files
committed
[c++] Don't deal with byte order in static bitset method.
1 parent 1c8bf33 commit 0bfb0f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,10 @@ private CharSequence generateChoices(final String bitsetClassName, final List<To
668668
"\n" +
669669
" static bool %1$s(const %2$s bits)\n" +
670670
" {\n" +
671-
" return %3$s(bits) & (0x1L << %4$s);\n" +
671+
" return bits & (0x1L << %3$s);\n" +
672672
" }\n\n",
673673
choiceName,
674674
typeName,
675-
byteOrderStr,
676675
choiceBitPosition));
677676

678677
sb.append(String.format(

0 commit comments

Comments
 (0)