[gegl] Rename variable to avoid shadowing a global function
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Rename variable to avoid shadowing a global function
- Date: Thu, 29 Jul 2010 09:58:17 +0000 (UTC)
commit 68c960fd32a8fe1d36d8b5a8ecb14d46cd40b8f0
Author: Mukund Sivaraman <muks banu com>
Date: Thu Jul 29 15:17:59 2010 +0530
Rename variable to avoid shadowing a global function
libs/rgbe/rgbe.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libs/rgbe/rgbe.c b/libs/rgbe/rgbe.c
index e9772f9..02e1272 100644
--- a/libs/rgbe/rgbe.c
+++ b/libs/rgbe/rgbe.c
@@ -816,7 +816,7 @@ static void
rgbe_float_to_rgbe (const gfloat *f,
guint8 *rgbe)
{
- gint exp;
+ gint e;
gfloat frac, max;
g_return_if_fail (f);
@@ -832,13 +832,13 @@ rgbe_float_to_rgbe (const gfloat *f,
goto cleanup;
}
- frac = frexp (max, &exp) * 256.0 / max;
+ frac = frexp (max, &e) * 256.0 / max;
rgbe[OFFSET_R] = f[OFFSET_R] * frac;
rgbe[OFFSET_G] = f[OFFSET_G] * frac;
rgbe[OFFSET_B] = f[OFFSET_B] * frac;
- rgbe[OFFSET_E] = exp + 128;
+ rgbe[OFFSET_E] = e + 128;
cleanup:
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]