0
0
forked from aniani/nasm

If we have new features introduced by C11, use them

Instead of using hacks or compiler-specific features, if we have
standard features as defined in ISO C11, use them.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin
2016-12-20 02:29:58 -08:00
parent fd610f27d6
commit abd28c9ab9
5 changed files with 44 additions and 5 deletions

View File

@@ -492,7 +492,7 @@ restart_parse:
if (i == TOKEN_EOS)
goto fail;
nasm_build_assert(P_none != 0);
nasm_build_assert(P_none == 0);
memset(result->prefixes, P_none, sizeof(result->prefixes));
result->times = 1L;