runtime/internal/clite/syscall: fix init

This commit is contained in:
visualfc
2025-05-16 12:44:29 +08:00
parent 9a16fff27e
commit ffc1f712a3
4 changed files with 37 additions and 11 deletions

View File

@@ -5,7 +5,6 @@
package syscall
import (
"strconv"
"unsafe"
)
@@ -79,7 +78,7 @@ func (e Errno) Error() string {
return s
}
}
return "errno " + strconv.Itoa(int(e))
return "errno " + utoa(uint64(e))
}
func (e Errno) Is(target error) bool {
@@ -209,7 +208,7 @@ func (s Signal) String() string {
case SIGSYS:
return "bad system call"
default:
return "signal " + strconv.Itoa(int(s))
return "signal " + utoa(uint64(s))
}
}