Skip to content

Commit 8d5049b

Browse files
author
kalibera
committed
Avoid compiler warning (statement with no effect).
git-svn-id: https://svn.r-project.org/R/trunk@87447 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent aef21f3 commit 8d5049b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/memory.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4137,10 +4137,9 @@ SEXP (VECTOR_ELT)(SEXP x, R_xlen_t i) {
41374137
that even zero-length vectors have non-NULL data pointers, so
41384138
return (void *) 1 instead. Zero-length CHARSXP objects still have a
41394139
trailing zero byte so they are not handled. */
4140-
# define CHKZLN(x) do { \
4141-
CHK(x); \
4142-
if (STDVEC_LENGTH(x) == 0 && TYPEOF(x) != CHARSXP) \
4143-
return (void *) 1; \
4140+
# define CHKZLN(x) do { \
4141+
if (STDVEC_LENGTH(CHK(x)) == 0 && TYPEOF(x) != CHARSXP) \
4142+
return (void *) 1; \
41444143
} while (0)
41454144
#else
41464145
# define CHKZLN(x) do { } while (0)

0 commit comments

Comments
 (0)