From 2606031c762cf23ac552ae84776d8c5ab0296dc3 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 17 May 2023 20:10:22 +0200 Subject: [PATCH] fix(yaml): parse uint64 to int resolves #3861 --- .vscode/launch.json | 3 +-- src/properties/map.go | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index bab7e591..5ec22047 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,8 +12,7 @@ "print", "primary", "--shell=pwsh", - "--terminal-width=200", - "--config=/Users/jan/.test.omp.json" + "--terminal-width=200" ] }, { diff --git a/src/properties/map.go b/src/properties/map.go index 71a497fe..0c982dea 100644 --- a/src/properties/map.go +++ b/src/properties/map.go @@ -123,6 +123,8 @@ func (m Map) GetInt(property Property, defaultValue int) int { return v case int64: return int(v) + case uint64: + return int(v) case float64: intValue, ok := val.(float64) if !ok {