From 5ce65b4aa8f273bba8d0da0a28be859b9c53c342 Mon Sep 17 00:00:00 2001 From: wanghao522 <137471806@qq.com> Date: Fri, 8 Oct 2021 17:45:34 +0800 Subject: [PATCH] =?UTF-8?q?iOS15=20int64=E8=BD=ACstring=20=E7=B2=BE?= =?UTF-8?q?=E5=BA=A6=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/BuiltInBasicType.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/BuiltInBasicType.swift b/Source/BuiltInBasicType.swift index 8e44c18..daa848b 100644 --- a/Source/BuiltInBasicType.swift +++ b/Source/BuiltInBasicType.swift @@ -136,7 +136,8 @@ extension String: _BuiltInBasicType { return "false" } } - return formatter.string(from: num) + let number = num as NSNumber + return number.stringValue case _ as NSNull: return nil default: