From 1ed2bb7ca7e7eca5d3a7dca743ccf47330f3a51c Mon Sep 17 00:00:00 2001 From: chengfu Date: Sun, 14 May 2017 14:43:25 +0800 Subject: [PATCH] Fix bug in assign_op.h, Use not existed variables --- include/ps/internal/assign_op.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ps/internal/assign_op.h b/include/ps/internal/assign_op.h index 834f523e..7db1d5f2 100644 --- a/include/ps/internal/assign_op.h +++ b/include/ps/internal/assign_op.h @@ -24,7 +24,7 @@ enum AssignOp { * \brief return an assignment function: right op= left */ template -inline void AssignFunc(const T& lhs, AssignOp op, T* rhs) { +inline void AssignFunc(const T& left, AssignOp op, T* right) { switch (op) { case ASSIGN: *right = left; break; @@ -46,7 +46,7 @@ inline void AssignFunc(const T& lhs, AssignOp op, T* rhs) { * works for integers */ template -inline void AssignFuncInt(const T& lhs, AssignOp op, T* rhs) { +inline void AssignFuncInt(const T& left, AssignOp op, T* right) { switch (op) { case ASSIGN: *right = left; break;