ref: af35ed0b2dcf780dbb33ead37d4e94509563465a
parent: 14aae817e4c13ce56a40b83283bfb9c263e5a1c9
author: Paul Brossier <piem@altern.org>
date: Sat Jun 3 11:13:07 EDT 2006
fix signed/unsigned mismatches in examples fix signed/unsigned mismatches in examples
--- a/examples/aubionotes.c
+++ b/examples/aubionotes.c
@@ -25,7 +25,7 @@
int aubio_process(float **input, float **output, int nframes) {
unsigned int i; /*channels*/
unsigned int j; /*frames*/
- for (j=0;j<nframes;j++) {
+ for (j=0;j<(unsigned)nframes;j++) {
if(usejack) {
for (i=0;i<channels;i++) {
/* write input to datanew */
--- a/examples/aubioonset.c
+++ b/examples/aubioonset.c
@@ -25,7 +25,7 @@
int aubio_process(float **input, float **output, int nframes) {
unsigned int i; /*channels*/
unsigned int j; /*frames*/
- for (j=0;j<nframes;j++) {
+ for (j=0;j<(unsigned)nframes;j++) {
if(usejack) {
for (i=0;i<channels;i++) {
/* write input to datanew */
--- a/examples/aubioquiet.c
+++ b/examples/aubioquiet.c
@@ -26,7 +26,7 @@
int aubio_process(float **input, float **output, int nframes) {
unsigned int i; /*channels*/
unsigned int j; /*frames*/
- for (j=0;j<nframes;j++) {
+ for (j=0;j<(unsigned)nframes;j++) {
if(usejack) {
for (i=0;i<channels;i++) {
/* write input to datanew */
--- a/examples/aubiotrack.c
+++ b/examples/aubiotrack.c
@@ -34,7 +34,7 @@
unsigned int i; /*channels*/
unsigned int j; /*frames*/
smpl_t * btoutput = out->data[0];
- for (j=0;j<nframes;j++) {
+ for (j=0;j<(unsigned)nframes;j++) {
if(usejack) {
for (i=0;i<channels;i++) {
/* write input to datanew */
--- a/examples/utils.c
+++ b/examples/utils.c
@@ -338,7 +338,7 @@
frames = 0;
- while (overlap_size == aubio_sndfile_read(file, overlap_size, ibuf))
+ while ((signed)overlap_size == aubio_sndfile_read(file, overlap_size, ibuf))
{
isonset=0;
process_func(ibuf->data, obuf->data, overlap_size);
--
⑨