Commit 91044b9
committed
fread(): avoid casting int* to Rboolean*
This used to work because the compilers were very likely to use int as
the underlying type of the enum. R-devel r87656 changes the definition
of Rboolean from an enum to bool, sothe sizes and the semantics of the
types are very different now. Since LOGICAL() returns int*, and
NA_INTEGER is an int, keep using that to access the vector contents.1 parent 874e571 commit 91044b9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
| 647 | + | |
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| |||
0 commit comments