mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: consolidate the different sleep functions into time.wait(Duration) (#8853)
This commit is contained in:
@@ -149,7 +149,7 @@ pub fn (n Number) hexstr() string {
|
||||
mut buf := [8192]byte{}
|
||||
// NB: C.bignum_to_string(), returns the HEXADECIMAL representation of the bignum n
|
||||
C.bignum_to_string(&n, buf, 8192)
|
||||
s := tos_clone(buf)
|
||||
s := unsafe { tos_clone(buf) }
|
||||
if s.len == 0 {
|
||||
return '0'
|
||||
}
|
||||
|
Reference in New Issue
Block a user