[gegl] gegl/buffer: use epsiloned float comparison
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl/buffer: use epsiloned float comparison
- Date: Wed, 27 Dec 2017 13:37:07 +0000 (UTC)
commit e2840d046a891d5c252f985f4270b9836ca589d5
Author: Øyvind Kolås <pippin gimp org>
Date: Wed Dec 27 11:29:00 2017 +0100
gegl/buffer: use epsiloned float comparison
gegl/buffer/gegl-buffer-access.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index abfcc56..fb131b8 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1480,7 +1480,7 @@ _gegl_buffer_get_unlocked (GeglBuffer *buffer,
sample_rect.width = factor * (x2 - x1);
sample_rect.height = factor * (y2 - y1);
- if (scale == 1.0)
+ if (GEGL_FLOAT_EQUAL (scale, 1.0))
{
gegl_buffer_iterate_read_dispatch (buffer, &sample_rect,
(guchar*)dest_buf, rowstride,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]