From f3f3edaad49aab55f85d9f29d19ee369505cc0af Mon Sep 17 00:00:00 2001 From: ruslandoga Date: Mon, 20 Apr 2026 22:32:26 +0300 Subject: [PATCH] use Integer.pow/2 --- lib/ch/row_binary.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ch/row_binary.ex b/lib/ch/row_binary.ex index ae6ad275..d5495c83 100644 --- a/lib/ch/row_binary.ex +++ b/lib/ch/row_binary.ex @@ -1621,8 +1621,7 @@ defmodule Ch.RowBinary do @compile inline: [time_unit: 1, time_prec: 1] for precision <- 0..9 do - time_unit = round(:math.pow(10, precision)) - + time_unit = Integer.pow(10, precision) defp time_unit(unquote(precision)), do: unquote(time_unit) defp time_prec(unquote(time_unit)), do: unquote(precision) end