From 7e21176b116744c21b9d8b38de49aa29f9ce3f21 Mon Sep 17 00:00:00 2001 From: David Wendt Date: Fri, 12 Apr 2024 17:08:09 -0400 Subject: [PATCH] update comment --- cpp/include/cudf/strings/detail/convert/string_to_float.cuh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/include/cudf/strings/detail/convert/string_to_float.cuh b/cpp/include/cudf/strings/detail/convert/string_to_float.cuh index a8c1d30349d..bbf56cf1446 100644 --- a/cpp/include/cudf/strings/detail/convert/string_to_float.cuh +++ b/cpp/include/cudf/strings/detail/convert/string_to_float.cuh @@ -102,7 +102,8 @@ __device__ inline double stod(string_view const& d_str) ch = *in_ptr++; if (ch < '0' || ch > '9') break; exp_ten = (exp_ten * 10) + (int)(ch - '0'); - // prevent integer overflow + // Prevent integer overflow in exp_ten. 100,000,000 is the largest + // power of ten that can be multiplied by 10 without overflow. if (exp_ten >= 100'000'000) { break; } } }