diff --git a/examples/img2twit.cpp b/examples/img2twit.cpp index 87894a6..599c9b2 100644 --- a/examples/img2twit.cpp +++ b/examples/img2twit.cpp @@ -949,7 +949,7 @@ int main(int argc, char *argv[]) } } while((dh + 1) * dw <= TOTAL_CELLS) dh++; - while(dw * (dh + 1) <= TOTAL_CELLS) dw++; + while(dh * (dw + 1) <= TOTAL_CELLS) dw++; /* Print debug information */ if(DEBUG_MODE)