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

minor tcc fixes

This commit is contained in:
Alexander Medvednikov
2019-07-08 03:42:36 +02:00
parent 4c07df6a21
commit cd10890258
4 changed files with 8 additions and 4 deletions

View File

@@ -33,7 +33,8 @@ pub fn ptr_str(ptr voidptr) string {
// compare floats using C epsilon
pub fn (a f64) eq(b f64) bool {
return C.fabs(a - b) <= C.DBL_EPSILON
//return C.fabs(a - b) <= C.DBL_EPSILON
return (a - b) <= C.DBL_EPSILON
}
// fn (nn i32) str() string {