master > master: code, go - bugs behoben (out of bounds + Konversion fand nicht statt)
This commit is contained in:
@@ -463,8 +463,8 @@ func PromptInputListOfZeroOnes(name string, descr string, requirements []string)
|
||||
Response: &response,
|
||||
}
|
||||
cancel, err := query.Prompt()
|
||||
// konvertiere in int
|
||||
if !cancel && err != nil {
|
||||
// uint8 -> int
|
||||
if response.Response != nil {
|
||||
for _, x := range response.Response {
|
||||
values = append(values, int(x))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user