Octave/*.cc : Minor cleanups.

This commit is contained in:
Erik de Castro Lopo 2007-08-25 16:55:31 +10:00
parent 5ecea5a8d1
commit 86a91c5b3f
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ hash_of_str (const std::string & str)
{
int hash = 0 ;
for (int k = 0 ; k < str.length () ; k++)
for (unsigned k = 0 ; k < str.length () ; k++)
hash = (hash * 3) + tolower (str [k]) ;
return hash ;

View File

@ -77,7 +77,7 @@ Read a sound file from disk using libsndfile.\n\
if (total + readcount > sfinfo.frames)
readcount = sfinfo.frames - total ;
for (unsigned ch = 0 ; ch < sfinfo.channels ; ch++)
for (int ch = 0 ; ch < sfinfo.channels ; ch++)
{ for (int k = 0 ; k < readcount ; k++)
out (total + k, ch) = buffer [k * sfinfo.channels + ch] ;
} ;