appendInt(offset, offsetFormat);
int ix;
for (ix = 0; ix < bytesPerLine; ix++){
- if (ix < length)
+ if (ix < (int) length)
appendInt((unsigned) data[ix] % 0xff, "%02x");
else
append(" ");
}
char cc;
for (ix = 0; ix < bytesPerLine; ix++){
- if (ix < length)
+ if (ix < (int) length)
appendInt( (cc = data[ix]) < ' ' || cc > 127 ? '.' : cc, "%c");
else
append(" ");
append(" ", 1);
}
append("\n", 1);
- length = length <= bytesPerLine ? 0 : length - bytesPerLine;
+ length = length <= (int) bytesPerLine ? 0 : length - bytesPerLine;
data += bytesPerLine;
offset += bytesPerLine;
}
/* interface header */
#include "math/md5.hpp"
+#include "assert.h"
/* system implementation headers */
#include <cstdio>
std::ostream& operator<<(std::ostream& out, MD5 md5)
{
+ assert(false);
return out << md5.hexdigest();
}
list.split(buffer.str() + 1, buffer.str()[0]);
buffer.replaceAll(OS_SEPARATOR, 1, "/", 1);
ReByteBuffer item;
- for (int ix = 0; ix < list.count(); ix++){
+ for (int ix = 0; ix < (int) list.count(); ix++){
item.set(list.strOf(ix), -1);
if (item.endsWith("/*"))
item.setLength(item.length() - 2);
}
#elif defined __WIN32__
BOOL dummy;
- rc = CopyFileEx(source, target, NULL, NULL, &dummy, COPY_FILE_NO_BUFFERING) != 0;
+ rc = CopyFileExA(source, target, NULL, NULL, &dummy, COPY_FILE_NO_BUFFERING) != 0;
int errNo = 0;
if (! rc)
errNo = GetLastError();
// for all parents and the full path itself:
while(ixSlash >= 0){
ixSlash = path.indexOf(OS_SEPARATOR_CHAR, ixSlash + 1);
- if (ixSlash >= path.length() - 1)
+ if (ixSlash >= (int) path.length() - 1)
break;
// is the slash in front of the first node, e.g. 'e:\'?
if (ixSlash == start + 1)