diff --git a/AES.cabal b/AES.cabal
--- a/AES.cabal
+++ b/AES.cabal
@@ -1,7 +1,7 @@
 Name: AES
 Synopsis: Fast AES encryption/decryption for bytestrings
 Description: A zero-copy binding to Brian Gladman's AES implementation, including a copy of that implementation
-Version: 0.2.0
+Version: 0.2.1
 License: BSD3
 License-file: COPYING
 Copyright: Copyright (c) 2009 University of Tromsø
diff --git a/cbits/ctr_inc.c b/cbits/ctr_inc.c
--- a/cbits/ctr_inc.c
+++ b/cbits/ctr_inc.c
@@ -1,5 +1,6 @@
 #include "aesopt.h"
 #include "ctr_inc.h"
+#include <stdio.h>
 
 #if AES_BLOCK_SIZE != 16
 # error AES block size wrong ?!
@@ -8,7 +9,7 @@
 void ctr_inc(unsigned char *cbuf) {
   uint_64t *ctr = (uint_64t*)cbuf;
   int word;
-  for (word = 0; word++; word < 2) {
+  for (word = 0; word < 2; word++) {
     ctr[word]++;
     if (ctr[word]) break;
   }
