mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
audio: Use labs() instead of abs()
* abs() accepts ints as parameters, but this breaks compile since the times are longs, not ints * Use labs() instead, which accepts longs as parameters, to fix compile Change-Id: I8f980a78380cdae18abd5b9602e281beae3ee4d3 Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
This commit is contained in:
parent
e3800acf0e
commit
f114e2ee35
1 changed files with 2 additions and 2 deletions
|
@ -262,8 +262,8 @@ struct timespec time_spec_diff(struct timespec time1, struct timespec time0) {
|
|||
time0.tv_sec -= xsec;
|
||||
}
|
||||
|
||||
ret.tv_sec = abs(time1.tv_sec - time0.tv_sec);
|
||||
ret.tv_nsec = abs(time1.tv_nsec - time0.tv_nsec);
|
||||
ret.tv_sec = labs(time1.tv_sec - time0.tv_sec);
|
||||
ret.tv_nsec = labs(time1.tv_nsec - time0.tv_nsec);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue