encoding.base64: vfmt base64.c.v
parent
31fe02de8c
commit
87029e5707
|
@ -233,7 +233,7 @@ pub fn encode_str(data string) string {
|
||||||
fn alloc_and_encode(src &byte, len int) string {
|
fn alloc_and_encode(src &byte, len int) string {
|
||||||
if len == 0 {
|
if len == 0 {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
size := 4 * ((len + 2) / 3)
|
size := 4 * ((len + 2) / 3)
|
||||||
if size <= 0 {
|
if size <= 0 {
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in New Issue