fix the build
parent
726aaecc46
commit
a280e98d7f
|
@ -31,7 +31,7 @@ pub fn (a f64) eq(b f64) bool {
|
||||||
return C.fabs(a - b) <= C.DBL_EPSILON
|
return C.fabs(a - b) <= C.DBL_EPSILON
|
||||||
}
|
}
|
||||||
pub fn (a f32) eq(b f32) bool {
|
pub fn (a f32) eq(b f32) bool {
|
||||||
return C.fabs(a - b) <= C.FLT_EPSILON
|
return C.fabsf(a - b) <= C.FLT_EPSILON
|
||||||
}
|
}
|
||||||
pub fn (a f64) eqbit(b f64) bool {
|
pub fn (a f64) eqbit(b f64) bool {
|
||||||
return C.DEFAULT_EQUAL(a, b)
|
return C.DEFAULT_EQUAL(a, b)
|
||||||
|
|
|
@ -202,9 +202,9 @@ pub fn (s string) u32() u32 {
|
||||||
|
|
||||||
pub fn (s string) u64() u64 {
|
pub fn (s string) u64() u64 {
|
||||||
//$if tinyc {
|
//$if tinyc {
|
||||||
return u64(s.int()) // TODO
|
//return u64(s.int()) // TODO
|
||||||
//} $else {
|
//} $else {
|
||||||
//return C.strtoull(*char(s.str), 0, 0)
|
return C.strtoull(*char(s.str), 0, 0)
|
||||||
//}
|
//}
|
||||||
//return C.atoll(s.str) // temporary fix for tcc on windows.
|
//return C.atoll(s.str) // temporary fix for tcc on windows.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue