about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--editor/pamaltsat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/pamaltsat.c b/editor/pamaltsat.c
index 64a099e4..6d9b91e0 100644
--- a/editor/pamaltsat.c
+++ b/editor/pamaltsat.c
@@ -41,7 +41,7 @@ methodFmNm(const char * const methodNm) {
 /*----------------------------------------------------------------------------
    The method of saturation whose name is 'methodNm'
 -----------------------------------------------------------------------------*/
-    uchar  i;
+    uint  i;
     bool found;
     Method method;
 
@@ -56,6 +56,7 @@ methodFmNm(const char * const methodNm) {
         /* Issue error message and abort */
         char * methodList;
         uint   methodListLen;
+        uint   i;
 
         /* Allocate a buffer to store the list of known saturation methods: */
         for (i = 0, methodListLen = 0; i < ARRAY_SIZE(methodTable); ++i)
@@ -65,7 +66,7 @@ methodFmNm(const char * const methodNm) {
 
         if (!methodList)
             pm_error("Failed to allocate memory for %lu saturation "
-                     "method names", ARRAY_SIZE(methodTable));
+                     "method names", (unsigned long)ARRAY_SIZE(methodTable));
 
         /* Fill the list of methods: */
         for (i = 0, methodList[0] = '\0'; i < ARRAY_SIZE(methodTable); ++i) {
@@ -409,7 +410,7 @@ saturateSpectrum(LinSampleInfo * const siP,
         /* To satisfy both constraints, choose the strictest: */
         double const km = km1 > km2 ? km2 : km1;
 
-        /* Ensure the saturation factor does exceed the maximum
+        /* Ensure the saturation factor does not exceed the maximum
            possible value:
         */
         k = sat < km ? sat : km;