about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-10-28 22:14:22 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-10-28 22:14:22 +0000
commit0fb08f5670b6a0647c493f2a9dc79fc552b0c918 (patch)
tree26813e964d19eb33e85e7aac62940763dd6e6295
parent0b31102c4c3890b80025c73f64a408b509123efd (diff)
downloadzsh-0fb08f5670b6a0647c493f2a9dc79fc552b0c918.tar.gz
zsh-0fb08f5670b6a0647c493f2a9dc79fc552b0c918.tar.xz
zsh-0fb08f5670b6a0647c493f2a9dc79fc552b0c918.zip
Made the two ZC_REDIR_*() macros return an int.
-rw-r--r--Src/zsh.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index f530cb8d9..d59fc44e4 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -656,8 +656,8 @@ struct eccstr {
 #define WC_PIPE_LINENO(C)   (wc_data(C) >> 1)
 #define WCB_PIPE(T,L)       wc_bld(WC_PIPE, ((T) | ((L) << 1)))
 
-#define WC_REDIR_TYPE(C)    (wc_data(C) & REDIR_TYPE_MASK)
-#define WC_REDIR_VARID(C)   (wc_data(C) & REDIR_VARID_MASK)
+#define WC_REDIR_TYPE(C)    ((int)(wc_data(C) & REDIR_TYPE_MASK))
+#define WC_REDIR_VARID(C)   ((int)(wc_data(C) & REDIR_VARID_MASK))
 #define WCB_REDIR(T)        wc_bld(WC_REDIR, (T))
 /* Size of redir is 4 words if REDIR_VARID_MASK is set, else 3 */
 #define WC_REDIR_WORDS(C)   (WC_REDIR_VARID(C) ? 4 : 3)