]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Fixes compilation on some platforms
authorPatrice Fournier <pfournier@ifax.com>
Thu, 24 Jun 2010 14:56:09 +0000 (10:56 -0400)
committerAidan Van Dyk <mountie@cherry.home.highrise.ca>
Wed, 29 Jun 2011 13:31:49 +0000 (09:31 -0400)
At least on avr32 Linux with gcc, there was missing casts to a fxmin parameters.

faxd/faxQueueApp.c++

index 9a5edbe4bd426c4243b9100fd2f23d1fec52ed9f..1af9a74624a482c44c6cef7d19d9f276e23463e0 100644 (file)
@@ -1084,7 +1084,7 @@ faxQueueApp::preparePageChop(const FaxRequest& req,
        if (dec.getLastBlanks() > minRows)
        {
            pagehandling.append(fxStr::format("Z%04x",
-               fxmin((unsigned)0xFFFF, stripSize - (dec.getEndOfPage() - data))));
+               fxmin((u_int)0xFFFF, (u_int)(stripSize - (dec.getEndOfPage() - data)))));
        }
     }
     delete [] data;