Skip to content

Commit 105d8b9

Browse files
committed
Update CHANGELOG and small fix in RandFunctionsNodes
1 parent 8cf613f commit 105d8b9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Added missing R builtins and C APIs:
2020
* define dummy `XLENGTH` macro if `USE_RINTERNALS` is defined
2121
* non-existence of this macro is used by some packages to detect old R versions
2222
* `IS_LONG_VEC` C API function
23+
* when loading native symbol dynamically, FastR also checks the name with trailing underscode to be compatible with GNU-R
24+
25+
# 20.2.0
2326

2427
Bug fixes:
2528

@@ -29,7 +32,6 @@ Bug fixes:
2932
Added missing R builtins and C APIs
3033

3134
* Dummy implementations of `X_IS_SORTED` and `X_NO_NA` for `X = STRING,INTEGER,REAL` #156
32-
* when loading native symbol dynamically, FastR also checks the name with trailing underscode to be compatible with GNU-R
3335

3436
# 20.1.0
3537

com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/RandFunctionsNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private RandFunctionsNodes() {
9494
protected abstract static class ConvertToLength extends Node {
9595
public abstract int execute(RAbstractVector value);
9696

97-
@Specialization(guards = "dataLib.getLength(vector) == 1")
97+
@Specialization(guards = "dataLib.getLength(vector.getData()) == 1")
9898
public int lengthOne(RAbstractVector vector,
9999
@Cached("createNonPreserving()") CastIntegerNode castNode,
100100
@CachedLibrary(limit = "getCacheSize(2)") VectorDataLibrary dataLib,
@@ -108,7 +108,7 @@ public int lengthOne(RAbstractVector vector,
108108
return result;
109109
}
110110

111-
@Specialization(guards = "dataLib.getLength(vector) != 1", limit = "getVectorAccessCacheSize()")
111+
@Specialization(guards = "dataLib.getLength(vector.getData()) != 1", limit = "getVectorAccessCacheSize()")
112112
public int notSingle(RAbstractVector vector,
113113
@CachedLibrary("vector.getData()") VectorDataLibrary dataLib) {
114114
return dataLib.getLength(vector.getData());

0 commit comments

Comments
 (0)