--- a/inst/rsgenpoly.m
+++ b/inst/rsgenpoly.m
@@ -77,11 +77,11 @@
     print_usage ();
   endif
 
-  if (! (isscalar (n) && n == fix (n) && n > 2)
+  if (! (isscalar (n) && n == fix (n) && n > 2))
     error ("rsgenpoly: N must be an integer greater than 2");
   endif
 
-  if (! (isscalar (k) && k == fix (k) && k > 0)
+  if (! (isscalar (k) && k == fix (k) && k > 0))
     error ("rsgenpoly: K must be a non-negative integer");
   endif