summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_fixed.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm_fixed.h')
-rw-r--r--include/drm/drm_fixed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_fixed.h b/include/drm/drm_fixed.h
index 553210c02..627efa56e 100644
--- a/include/drm/drm_fixed.h
+++ b/include/drm/drm_fixed.h
@@ -88,7 +88,7 @@ static inline int drm_fixp2int(s64 a)
static inline int drm_fixp2int_ceil(s64 a)
{
- if (a > 0)
+ if (a >= 0)
return drm_fixp2int(a + DRM_FIXED_ALMOST_ONE);
else
return drm_fixp2int(a - DRM_FIXED_ALMOST_ONE);