From 3954ceb0e772d889f75dbc3b19eb96d0144170b0 Mon Sep 17 00:00:00 2001 From: Alvin Philips Date: Sun, 24 Oct 2021 03:47:08 +0530 Subject: [PATCH] Fixed wrong integer type Changed int64_t to int32_t --- operations_on_datastructures/union_of_two_arrays.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operations_on_datastructures/union_of_two_arrays.cpp b/operations_on_datastructures/union_of_two_arrays.cpp index 45433379e..d2a621440 100644 --- a/operations_on_datastructures/union_of_two_arrays.cpp +++ b/operations_on_datastructures/union_of_two_arrays.cpp @@ -28,7 +28,7 @@ namespace operations_on_datastructures { * @returns void */ void print(const std::vector &array) { - for (int64_t i : array) { + for (int32_t i : array) { std::cout << i << " "; /// Print each value in the array } std::cout << "\n"; /// Print newline