remove duplicated check
This commit is contained in:
parent
4f15e1572d
commit
e355395e7a
@ -107,11 +107,8 @@ B utf8DecodeA(I8Arr* a) { // consumes a
|
||||
void fprintsB(FILE* f, B x) {
|
||||
u8 xe = TI(x,elType);
|
||||
usz ia = IA(x);
|
||||
if (ia==0) return;
|
||||
if (xe==el_c32) {
|
||||
fprintsU32(f, c32any_ptr(x), ia);
|
||||
} else {
|
||||
#define BUF_SZ 1024
|
||||
if (ia==0) return;
|
||||
if (elChr(xe)) {
|
||||
if (xe==el_c32) {
|
||||
fprintsU32(f, c32any_ptr(x), ia);
|
||||
@ -139,7 +136,6 @@ void fprintsB(FILE* f, B x) {
|
||||
}
|
||||
#undef BUF_SZ
|
||||
}
|
||||
}
|
||||
|
||||
u64 utf8lenB(B x) { // doesn't consume; may error as it verifies whether is all chars
|
||||
assert(isArr(x));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user