From 5810370c1dd80d4786b249ac1e37feb595d5f3f2 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 27 Jan 2026 13:06:28 -0400 Subject: [PATCH] MT#62181 rename longlong2str to int2str Adds another overload Change-Id: I1ad57862a7dbe96ec3cd327fa0dd74850bd0bc1a --- core/AmArg.cpp | 2 +- core/AmUtils.cpp | 2 +- core/AmUtils.h | 2 +- core/jsonArg.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/AmArg.cpp b/core/AmArg.cpp index af9f15c7..acebfce3 100644 --- a/core/AmArg.cpp +++ b/core/AmArg.cpp @@ -389,7 +389,7 @@ string AmArg::print(const AmArg &a) { case Int: return a.asInt()<0?"-"+int2str(abs(a.asInt())):int2str(abs(a.asInt())); case LongLong: - return longlong2str(a.asLongLong()); + return int2str(a.asLongLong()); case Bool: return a.asBool()?"true":"false"; case Double: diff --git a/core/AmUtils.cpp b/core/AmUtils.cpp index f86d1549..c794a173 100644 --- a/core/AmUtils.cpp +++ b/core/AmUtils.cpp @@ -98,7 +98,7 @@ string int2str(unsigned int val) { return num2str(val); } string int2str(int val) { return num2str(val); } string int2str(unsigned long int val) { return num2str(val); } string int2str(long int val) { return num2str(val); } -string longlong2str(long long int val) { return num2str(val); } +string int2str(long long int val) { return num2str(val); } static char _int2hex_lookup[] = { '0', '1', '2', '3', '4', '5', '6' , '7', '8', '9','A','B','C','D','E','F' }; static char _int2hex_lookup_l[] = { '0', '1', '2', '3', '4', '5', '6' , '7', '8', '9','a','b','c','d','e','f' }; diff --git a/core/AmUtils.h b/core/AmUtils.h index 90e91d75..ee74e194 100644 --- a/core/AmUtils.h +++ b/core/AmUtils.h @@ -87,7 +87,7 @@ string int2str(unsigned long int val); /** * Convert a long long to a string. */ -string longlong2str(long long int val); +string int2str(long long int val); /** * Convert a a byte to a string using hexdecimal representation. diff --git a/core/jsonArg.cpp b/core/jsonArg.cpp index 80446b09..98b3dc71 100644 --- a/core/jsonArg.cpp +++ b/core/jsonArg.cpp @@ -116,7 +116,7 @@ string arg2json(const AmArg &a) { return a.asInt()<0?"-"+int2str(abs(a.asInt())):int2str(abs(a.asInt())); case AmArg::LongLong: - return longlong2str(a.asLongLong()); + return int2str(a.asLongLong()); case AmArg::Bool: return a.asBool()?"true":"false";