changeset 238:74f307156fa5 trunk

[svn] - fix a potential segfault on x86
author nenolod
date Sat, 11 Nov 2006 10:56:43 -0800
parents f0117679cd26
children e45005422574
files ChangeLog src/paranormal/wave.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Nov 07 02:11:05 2006 -0800
+++ b/ChangeLog	Sat Nov 11 10:56:43 2006 -0800
@@ -1,3 +1,11 @@
+2006-11-07 10:11:05 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [488]
+  - a slightly better way of doing things here
+  
+  trunk/src/wavpack/libwavpack.cxx |   21 ++++++++++++++++++++-
+  1 file changed, 20 insertions(+), 1 deletion(-)
+
+
 2006-11-07 10:01:22 +0000  William Pitcock <nenolod@nenolod.net>
   revision [486]
   - detect filesize properly
--- a/src/paranormal/wave.c	Tue Nov 07 02:11:05 2006 -0800
+++ b/src/paranormal/wave.c	Sat Nov 11 10:56:43 2006 -0800
@@ -71,7 +71,7 @@
   x2_pos = g_new0(int, 257);
   y2_pos = g_new0(int, 257);
 
-  step = round((gfloat)pn_image_data->width / 256.0);
+  step = pn_image_data->width / 256;
 
   /* calculate the line. */
   for (i = 0; i < 256; i++)
@@ -189,7 +189,7 @@
   x2_pos = g_new0(int, 129);
   y2_pos = g_new0(int, 129);
 
-  step = round((gfloat)pn_image_data->height / 128.0);
+  step = pn_image_data->height / 128;
 
   /* calculate the line. */
   for (i = 0; i < 128; i++)