golang: Partially fix the tests.

./guestfs.go:4945:16: conversion from _Ctype_char (int8) to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
./guestfs.go:7320:16: conversion from _Ctype_char (int8) to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
./guestfs.go:7335:16: conversion from _Ctype_char (int8) to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
This commit is contained in:
Richard W.M. Jones
2021-04-08 12:58:05 +01:00
parent 95de3f6c50
commit 93c2d09136

View File

@@ -480,7 +480,7 @@ func return_hashtable (argv **C.char) map[string]string {
pr " return C.GoString (r), nil\n"
| RConstOptString _ ->
pr " if r != nil {\n";
pr " r_s := string (*r)\n";
pr " r_s := string (rune (*r))\n";
pr " return &r_s, nil\n";
pr " } else {\n";
pr " return nil, nil\n";