1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/print/dymo-cups-drivers/files/patch-src_lw_LabelWriterDriver.cpp
Hans Petter Selasky 514d6dc63e Fix some compiler warnings.
Approved by:	maintainer
2017-11-11 16:07:52 +00:00

18 lines
437 B
C++

--- src/lw/LabelWriterDriver.cpp.orig 2012-02-07 13:22:37 UTC
+++ src/lw/LabelWriterDriver.cpp
@@ -121,12 +121,12 @@ void
CLabelWriterDriver::GetBlanks(
const buffer_t& Buf, size_t& LeaderBlanks, size_t& TrailerBlanks)
{
- size_t i = 0;
+ ssize_t i = 0;
LeaderBlanks = 0;
TrailerBlanks = 0;
- size_t BufSize = Buf.size();
+ ssize_t BufSize = Buf.size();
// count left spaces
for (i = 0; i < BufSize; ++i)