Skip to content

Commit cb7400d

Browse files
committed
fix: build error
1 parent a1a5e2e commit cb7400d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/GpuOption/GpuOptionWin32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ std::optional<int> perfer_gpu()
191191
LogWarn << "software adapter, skip" << VAR(adapter_index) << VAR(adapter_desc);
192192
continue;
193193
}
194-
if (desc.DedicatedVideoMemory < 2 * 1024 * 1024 * 1024) {
194+
if (desc.DedicatedVideoMemory < 2LL * 1024 * 1024 * 1024) {
195195
LogWarn << "adapter has less than 2GB video memory, skip" << VAR(adapter_index) << VAR(adapter_desc)
196196
<< VAR(desc.DedicatedVideoMemory);
197197
continue;

0 commit comments

Comments
 (0)