mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: make sure all FnDecl types are valid
This commit is contained in:
@@ -266,7 +266,7 @@ pub fn (nn u16) hex() string {
|
||||
if nn == 0 {
|
||||
return '0'
|
||||
}
|
||||
|
||||
|
||||
mut n := nn
|
||||
max := 5
|
||||
mut buf := malloc(max + 1)
|
||||
@@ -320,7 +320,7 @@ pub fn (nn u64) hex() string {
|
||||
if nn == 0 {
|
||||
return '0'
|
||||
}
|
||||
|
||||
|
||||
mut n := nn
|
||||
max := 18
|
||||
mut buf := malloc(max + 1)
|
||||
@@ -356,6 +356,8 @@ pub fn (a []byte) contains(val byte) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
pub fn (c rune) str() string {
|
||||
fst_byte := int(c)>>8 * 3 & 0xff
|
||||
len := utf8_char_len(fst_byte)
|
||||
@@ -369,6 +371,7 @@ pub fn (c rune) str() string {
|
||||
str.str[len] = `\0`
|
||||
return str
|
||||
}
|
||||
*/
|
||||
|
||||
pub fn (c byte) str() string {
|
||||
mut str := string{
|
||||
|
Reference in New Issue
Block a user