mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user