per DB's patch, convert placewewant to a size_t; also add a few
miscellaneous fixes of mine


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1870 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/src/nano.c b/src/nano.c
index 83b676b..5dc3ba9 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1158,13 +1158,13 @@
 #ifndef NANO_SMALL
 void do_next_word(void)
 {
-    int old_pww = placewewant;
+    size_t old_pww = placewewant;
     const filestruct *current_save = current;
     assert(current != NULL && current->data != NULL);
 
     /* Skip letters in this word first. */
     while (current->data[current_x] != '\0' &&
-	    isalnum((int)current->data[current_x]))
+	isalnum((int)current->data[current_x]))
 	current_x++;
 
     for (; current != NULL; current = current->next) {
@@ -1190,7 +1190,7 @@
 /* The same thing for backwards. */
 void do_prev_word(void)
 {
-    int old_pww = placewewant;
+    size_t old_pww = placewewant;
     const filestruct *current_save = current;
     assert(current != NULL && current->data != NULL);