fix(yaml): parse uint64 to int

resolves #3861
This commit is contained in:
Jan De Dobbeleer 2023-05-17 20:10:22 +02:00 committed by Jan De Dobbeleer
parent c62a272e72
commit 2606031c76
2 changed files with 3 additions and 2 deletions

3
.vscode/launch.json vendored
View file

@ -12,8 +12,7 @@
"print",
"primary",
"--shell=pwsh",
"--terminal-width=200",
"--config=/Users/jan/.test.omp.json"
"--terminal-width=200"
]
},
{

View file

@ -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 {