This commit is contained in:
Justin Ethier 2017-10-24 19:01:20 -04:00
parent 325112e50b
commit 722d077367

View file

@ -976,7 +976,14 @@
((string_type *)s)->num_cp = num_cp;
((string_type *)s)->str = alloca(sizeof(char) * (len + 1));
}
//if (num_cp == 1) { /* Fast path */
memset(((string_type *)s)->str, c, len);
//} else {
// int i;
// uint32_t*
// for (i = 0; i < len; i++) {
// }
//}
((string_type *)s)->str[len] = '\\0';
return_closcall1(data, k, s);
")