diff options
author | txh18 <cloudygooseg@gmail.com> | 2015-10-28 16:29:29 +0800 |
---|---|---|
committer | txh18 <cloudygooseg@gmail.com> | 2015-10-28 16:29:29 +0800 |
commit | e0fa1a48cb9f91bfcfc60b732b6f137a7a2071ba (patch) | |
tree | d375f9684970bcfa2977d74074f949bf3f98107a /nerv/matrix/generic/cumatrix.c | |
parent | af99db1c6bc4823cc6ff094f24e963acd4788ef1 (diff) |
changed copy_rows_fromd_by_idx a bit to make it clearer
Diffstat (limited to 'nerv/matrix/generic/cumatrix.c')
-rw-r--r-- | nerv/matrix/generic/cumatrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nerv/matrix/generic/cumatrix.c b/nerv/matrix/generic/cumatrix.c index 623352e..f675149 100644 --- a/nerv/matrix/generic/cumatrix.c +++ b/nerv/matrix/generic/cumatrix.c @@ -247,8 +247,8 @@ static int nerv_matrix_(lua_copy_rows_fromd_by_idx)(lua_State *L) { const Matrix *b = luaT_checkudata(L, 2, nerv_matrix_(tname)); const Matrix *idx = luaT_checkudata(L, 3, nerv_matrix_(tname)); long nrow = a->nrow; - int b_begin = lua_gettop(L) > 3 ? luaL_checkinteger(L, 4) : 0; - nerv_matrix_(copy_rows_fromd_by_idx)(a, b, idx, b_begin, &status); + int idx_begin = lua_gettop(L) > 3 ? luaL_checkinteger(L, 4) : 0; + nerv_matrix_(copy_rows_fromd_by_idx)(a, b, idx, idx_begin, &status); NERV_LUA_CHECK_STATUS(L, status); return 0; } |