whitespace cleanup
This commit is contained in:
parent
74cfec9704
commit
c38565ab8d
@ -435,7 +435,7 @@ B indexOf_c1(B t, B x) {
|
|||||||
rp[i]=s; u+=u==s; \
|
rp[i]=s; u+=u==s; \
|
||||||
} \
|
} \
|
||||||
decG(x); TFREE(uniq); return r;
|
decG(x); TFREE(uniq); return r;
|
||||||
#define DOTAB(T) /*leaves 1+max in u */ \
|
#define DOTAB(T) /* leaves 1+max in u */ \
|
||||||
i32 u=0; \
|
i32 u=0; \
|
||||||
for (usz i=0; i<n; i++) { \
|
for (usz i=0; i<n; i++) { \
|
||||||
T j=xp[i]; i32 t=tab[j]; \
|
T j=xp[i]; i32 t=tab[j]; \
|
||||||
|
|||||||
@ -125,7 +125,7 @@ B parseFloat_c1(B t, B x) {
|
|||||||
usz ia = IA(x);
|
usz ia = IA(x);
|
||||||
if (RNK(x)!=1) thrM("•ParseFloat: Input must have rank 1");
|
if (RNK(x)!=1) thrM("•ParseFloat: Input must have rank 1");
|
||||||
if (ia==0) thrM("•ParseFloat: Input was empty");
|
if (ia==0) thrM("•ParseFloat: Input was empty");
|
||||||
if (ia >= (1<<20)) thrM("•ParseFloat: Input too long"); // otherwise things like
|
if (ia >= (1<<20)) thrM("•ParseFloat: Input too long"); // assumption by ryu_s2d_n
|
||||||
u8* data = c8any_ptr(x);
|
u8* data = c8any_ptr(x);
|
||||||
f64 res;
|
f64 res;
|
||||||
if (!ryu_s2d_n(data, ia, &res)) thrM("•ParseFloat: Malformed input");
|
if (!ryu_s2d_n(data, ia, &res)) thrM("•ParseFloat: Malformed input");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user