Minor fixes

This commit is contained in:
Jérôme Leclercq 2022-02-24 18:52:38 +01:00
parent cb1bc956b2
commit 6611cdf72e
2 changed files with 6 additions and 4 deletions

View File

@ -162,10 +162,10 @@ namespace Nz
if (f0 == 0 && l0 == 5 && m_ipv6[5] == 0xFFFF)
{
IPv4 ipv4 = {
m_ipv6[6] >> 8,
m_ipv6[6] & 0xFF,
m_ipv6[7] >> 8,
m_ipv6[7] & 0xFF,
SafeCast<UInt8>(m_ipv6[6] >> 8),
SafeCast<UInt8>(m_ipv6[6] & 0xFF),
SafeCast<UInt8>(m_ipv6[7] >> 8),
SafeCast<UInt8>(m_ipv6[7] & 0xFF),
};
stream << "::ffff:";

View File

@ -665,6 +665,7 @@ namespace Nz::ShaderLang
case TokenType::For:
statement = ParseForDeclaration(std::move(attributes));
attributes.clear();
break;
case TokenType::Let:
@ -703,6 +704,7 @@ namespace Nz::ShaderLang
case TokenType::While:
statement = ParseWhileStatement(std::move(attributes));
attributes.clear();
break;
default: