[cogl/msvc-support] Bug 650833: Fix crash on 32-bit Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/msvc-support] Bug 650833: Fix crash on 32-bit Windows
- Date: Mon, 18 Jul 2011 04:42:37 +0000 (UTC)
commit 421886270a90627eccc47d6457108d5ef66a753d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jul 18 12:32:32 2011 +0800
Bug 650833: Fix crash on 32-bit Windows
Declare int_part as double on cogl/cogl-texture-2d.c to avoid overflow
in _cogl_texture_2d_wrap_coords on Windows 32-bit. This may be a potential
problem on other 32-bit systems too. This change also runs fine on x64
Windows, too.
cogl/cogl-texture-2d.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c
index 71ff44a..6c0086d 100644
--- a/cogl/cogl-texture-2d.c
+++ b/cogl/cogl-texture-2d.c
@@ -65,7 +65,7 @@ static void
_cogl_texture_2d_wrap_coords (float t_1, float t_2,
float *out_t_1, float *out_t_2)
{
- float int_part;
+ double int_part;
/* Wrap t_1 and t_2 to the range [0,1] */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]