We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef21f3 commit 8d5049bCopy full SHA for 8d5049b
src/main/memory.c
@@ -4137,10 +4137,9 @@ SEXP (VECTOR_ELT)(SEXP x, R_xlen_t i) {
4137
that even zero-length vectors have non-NULL data pointers, so
4138
return (void *) 1 instead. Zero-length CHARSXP objects still have a
4139
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; \
+# define CHKZLN(x) do { \
+ if (STDVEC_LENGTH(CHK(x)) == 0 && TYPEOF(x) != CHARSXP) \
+ return (void *) 1; \
4144
} while (0)
4145
#else
4146
# define CHKZLN(x) do { } while (0)
0 commit comments