From 5e17fe3892a37b7805c41daffb5dbf1a485d5153 Mon Sep 17 00:00:00 2001 From: Ritesh17rb <101309433+Ritesh17rb@users.noreply.github.com> Date: Mon, 17 Jul 2023 13:42:23 +0530 Subject: [PATCH] Update String to Integer (atoi).cpp (Removed a Bug in the code) --- Leetcode Challenge/January/String to Integer (atoi).cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Leetcode Challenge/January/String to Integer (atoi).cpp b/Leetcode Challenge/January/String to Integer (atoi).cpp index 92da4d3..2ad09ba 100644 --- a/Leetcode Challenge/January/String to Integer (atoi).cpp +++ b/Leetcode Challenge/January/String to Integer (atoi).cpp @@ -25,7 +25,7 @@ class Solution { if(sign == 1 && ans > MAX) return MAX; i++; - }q + } return (int)(sign*ans); }