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 0a11ffa commit 32e5aeaCopy full SHA for 32e5aea
1 file changed
src/shift.c
@@ -40,7 +40,7 @@ SEXP shift(SEXP obj, SEXP k, SEXP fill, SEXP type)
40
SEXP elem = VECTOR_ELT(x, i);
41
size_t size = RTYPE_SIZEOF(elem);
42
R_xlen_t xrows = xlength(elem);
43
- if (INHERITS(elem, char_Date) && INHERITS(fill, char_POSIXct) || INHERITS(elem, char_POSIXct) && INHERITS(fill, char_Date)) {
+ if ((INHERITS(elem, char_Date) && INHERITS(fill, char_POSIXct)) || (INHERITS(elem, char_POSIXct) && INHERITS(fill, char_Date))) {
44
const char* elem_type = INHERITS(elem, char_Date) ? "Date" : "POSIXct";
45
const char* fill_type = INHERITS(fill, char_Date) ? "Date" : "POSIXct";
46
error(_("Filling %s with %s using shift() is unsupported. Please convert fill to %s first."),
0 commit comments