Skip to content

Commit a1e3140

Browse files
author
H. Peter Anvin
committed
doc: fix the equivalent description for %cond()
%cond(x,y,z) == %sel(1+!(x),y,z), not %sel(2-!(x),y,z). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
1 parent 9d38bed commit a1e3140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/nasmdoc.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2892,7 +2892,7 @@ The \c{%cond()} function evaluates its first argument as an
28922892
expression, then expands to its second argument if true (nonzero), and
28932893
the third, if present, if false (zero). This is in effect a specialized
28942894
version of the \i\c{%sel()} function; \c{%cond(x,y,z)} is equivalent
2895-
to \c{%sel(2-!(x),y,z)}.
2895+
to \c{%sel(1+!(x),y,z)}.
28962896

28972897
\c %define a 1
28982898
\c %xdefine astr %cond(a,"true","false") ; %define astr "true"

0 commit comments

Comments
 (0)