diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2007-08-25 16:55:31 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2007-08-25 16:55:31 +1000 |
commit | 86a91c5b3fef3d28c91ed057c779d1f80027445e (patch) | |
tree | dd3bf92829790de13f41636e75cc3cbe9070d49d /Octave | |
parent | 5ecea5a8d1f7f559911d4e9ebe4b691298a01693 (diff) |
Octave/*.cc : Minor cleanups.
Diffstat (limited to 'Octave')
-rw-r--r-- | Octave/format.cc | 2 | ||||
-rw-r--r-- | Octave/sfread.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Octave/format.cc b/Octave/format.cc index 9e3a48c..46fd4d5 100644 --- a/Octave/format.cc +++ b/Octave/format.cc @@ -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 ; diff --git a/Octave/sfread.cc b/Octave/sfread.cc index 3100f14..7b2b5a4 100644 --- a/Octave/sfread.cc +++ b/Octave/sfread.cc @@ -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] ; } ; |