1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: make V compilable wit the tcc backend

This commit is contained in:
Alexander Medvednikov
2019-10-11 03:55:54 +03:00
parent c3787e17fd
commit 726aaecc46
5 changed files with 15 additions and 2 deletions

View File

@ -31,7 +31,7 @@ pub fn (a f64) eq(b f64) bool {
return C.fabs(a - b) <= C.DBL_EPSILON
}
pub fn (a f32) eq(b f32) bool {
return C.fabsf(a - b) <= C.FLT_EPSILON
return C.fabs(a - b) <= C.FLT_EPSILON
}
pub fn (a f64) eqbit(b f64) bool {
return C.DEFAULT_EQUAL(a, b)