From f9c345102e3d14bdec2fd1841f8e0db31b621d16 Mon Sep 17 00:00:00 2001 From: AlbertoEAF Date: Fri, 13 Nov 2020 21:12:46 +0000 Subject: [PATCH] Fix whitespace for linter --- src/c_api.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c_api.cpp b/src/c_api.cpp index 4321b8998024..5cd0eab3d77f 100644 --- a/src/c_api.cpp +++ b/src/c_api.cpp @@ -2403,7 +2403,7 @@ RowFunctionFromCSR_helper(const void* indptr, const int32_t* indices, const void template std::function>(T idx)> RowFunctionFromCSR(const void* indptr, int indptr_type, const int32_t* indices, const void* data, int data_type, int64_t , int64_t ) { - if (data_type == C_API_DTYPE_FLOAT32) { + if (data_type == C_API_DTYPE_FLOAT32) { if (indptr_type == C_API_DTYPE_INT32) { return RowFunctionFromCSR_helper(indptr, indices, data); } else if (indptr_type == C_API_DTYPE_INT64) { @@ -2424,7 +2424,7 @@ RowFunctionFromCSR(const void* indptr, int indptr_type, const int32_t* indices, template std::function(int idx)> IterateFunctionFromCSC_helper(const void* col_ptr, const int32_t* indices, const void* data, int col_idx) { - const T1* data_ptr = reinterpret_cast(data); + const T1* data_ptr = reinterpret_cast(data); const T2* ptr_col_ptr = reinterpret_cast(col_ptr); int64_t start = ptr_col_ptr[col_idx]; int64_t end = ptr_col_ptr[col_idx + 1]; @@ -2447,7 +2447,7 @@ IterateFunctionFromCSC(const void* col_ptr, int col_ptr_type, const int32_t* ind return IterateFunctionFromCSC_helper(col_ptr, indices, data, col_idx); } else if (col_ptr_type == C_API_DTYPE_INT64) { return IterateFunctionFromCSC_helper(col_ptr, indices, data, col_idx); - } + } } else if (data_type == C_API_DTYPE_FLOAT64) { if (col_ptr_type == C_API_DTYPE_INT32) { return IterateFunctionFromCSC_helper(col_ptr, indices, data, col_idx);