mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
encoding.base64: vfmt base64.c.v
This commit is contained in:
@@ -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 ''
|
||||||
|
|||||||
Reference in New Issue
Block a user