Skip to content

Commit 545b78b

Browse files
logical inversion
1 parent c340d1d commit 545b78b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ bool isRealReallyInt32(SEXP x) {
2323
(within_int32_repres(dx[i]) && dx[i]==(int)(dx[i])))) {
2424
i++;
2525
}
26-
return i!=n;
26+
return i==n;
2727
}
2828

2929
SEXP isRealReallyInt32R(SEXP x) {
@@ -40,7 +40,7 @@ bool isRealReallyInt64(SEXP x) {
4040
(within_int64_repres(dx[i]) && dx[i]==(int64_t)(dx[i])))) {
4141
i++;
4242
}
43-
return i!=n;
43+
return i==n;
4444
}
4545

4646
SEXP isRealReallyInt64R(SEXP x) {

0 commit comments

Comments
 (0)