From de993fbf6de204cdefd5350d2811b1351c9aa404 Mon Sep 17 00:00:00 2001 From: sheldonneuberger-sc Date: Wed, 16 Nov 2022 11:52:28 -0800 Subject: [PATCH] use 64bit int for memory (#327) --- Sources/tart/Commands/Set.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/tart/Commands/Set.swift b/Sources/tart/Commands/Set.swift index c7175c2..698a7d7 100644 --- a/Sources/tart/Commands/Set.swift +++ b/Sources/tart/Commands/Set.swift @@ -11,7 +11,7 @@ struct Set: AsyncParsableCommand { var cpu: UInt16? @Option(help: "VM memory size in megabytes") - var memory: UInt16? + var memory: UInt64? @Option(help: "VM display resolution in a format of x. For example, 1200x800") var display: VMDisplayConfig? @@ -29,7 +29,7 @@ struct Set: AsyncParsableCommand { } if let memory = memory { - try vmConfig.setMemory(memorySize: UInt64(memory) * 1024 * 1024) + try vmConfig.setMemory(memorySize: memory * 1024 * 1024) } if let display = display {