在 CGFloats 上使用 fabsf 显示警告
Using fabsf on CGFloats shows a warning
我正在尝试获取 CGFloat 参数的绝对值,但收到以下警告:
Absolute value function 'fabsf' given an argument of type 'CGFloat' (aka 'double') but has parameter of type 'float' which may cause truncation of value
我正在尝试获取 CGFloat 参数的绝对值,但收到以下警告:
Absolute value function 'fabsf' given an argument of type 'CGFloat' (aka 'double') but has parameter of type 'float' which may cause truncation of value