Skip to content

Commit eff82b8

Browse files
committed
make op_hyperbolic function a bit clearer in implementation
1 parent bf92262 commit eff82b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/expr/funary/hyperbolic.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class FExpr_Hyperbolic : public FExpr_FuncUnary {
6565
* FLOAT32 -> FLOAT32
6666
*
6767
*/
68-
template <typename T>
68+
template <typename T, size_t POSN>
6969
static inline T op_hyperbolic(T x) {
70-
switch (POS) {
70+
switch (POSN) {
7171
case 1:
7272
return sinh(x);
7373
case 2:
@@ -113,7 +113,7 @@ class FExpr_Hyperbolic : public FExpr_FuncUnary {
113113
static Column make(Column&& col) {
114114
xassert(compatible_type<T>(col.stype()));
115115
return Column(new FuncUnary1_ColumnImpl<T, T>(
116-
std::move(col), op_hyperbolic<T>,
116+
std::move(col), op_hyperbolic<T, POSS>,
117117
col.nrows(), col.stype()
118118
));
119119
}

0 commit comments

Comments
 (0)