fix the build

pull/2293/head
Alexander Medvednikov 2019-10-11 06:57:08 +03:00
parent 726aaecc46
commit a280e98d7f
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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.
} }