Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/C/src/antlr3filestream.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ setupInputStream(pANTLR3_INPUT_STREAM input)
}
else if ( (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar)) == 0xFF
&& (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar+1)) == 0xFE
&& (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar+1)) == 0x00
&& (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar+1)) == 0x00
&& (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar+2)) == 0x00
&& (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar+3)) == 0x00
)
{
// BOM present, indicates Little Endian
Expand Down
4 changes: 2 additions & 2 deletions runtime/Cpp/include/antlr3input.inl
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ void InputStream<ImplTraits>::setupInputStream()
}
else if ( (ANTLR_UINT8)(*((ANTLR_UINT8*)m_nextChar)) == 0xFF
&& (ANTLR_UINT8)(*((ANTLR_UINT8*)m_nextChar+1)) == 0xFE
&& (ANTLR_UINT8)(*((ANTLR_UINT8*)m_nextChar+1)) == 0x00
&& (ANTLR_UINT8)(*((ANTLR_UINT8*)m_nextChar+1)) == 0x00
&& (ANTLR_UINT8)(*((ANTLR_UINT8*)m_nextChar+2)) == 0x00
&& (ANTLR_UINT8)(*((ANTLR_UINT8*)m_nextChar+3)) == 0x00
)
{
// BOM present, indicates Little Endian
Expand Down