summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2013-01-25 21:23:43 +1030
committerAdrian Johnson <ajohnson@redneon.com>2013-01-25 21:23:43 +1030
commita3cee0e7e9dd292c70fe1fa19a92e70bbc1e1b41 (patch)
tree429bae008864ac1fe49e2ba1ee2632ccedfee750 /test
parent6eebbb9c015f98b713205e56ab2f1d4d430e9206 (diff)
Large file support
Create a Goffset type and use this type for all file offsets and file sizes. Bug 44085
Diffstat (limited to 'test')
-rw-r--r--test/perf-test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/perf-test.cc b/test/perf-test.cc
index 21fbdeed..84bbcda1 100644
--- a/test/perf-test.cc
+++ b/test/perf-test.cc
@@ -742,7 +742,7 @@ void OutputDebugString(const char *txt)
#define _vsnprintf vsnprintf
#endif
-void my_error(void *, ErrorCategory, int pos, char *msg) {
+void my_error(void *, ErrorCategory, Goffset pos, char *msg) {
#if 0
char buf[4096], *p = buf;
@@ -752,7 +752,7 @@ void my_error(void *, ErrorCategory, int pos, char *msg) {
}
if (pos >= 0) {
- p += _snprintf(p, sizeof(buf)-1, "Error (%d): ", pos);
+ p += _snprintf(p, sizeof(buf)-1, "Error (%lld): ", (long long)pos);
*p = '\0';
OutputDebugString(p);
} else {
@@ -769,7 +769,7 @@ void my_error(void *, ErrorCategory, int pos, char *msg) {
OutputDebugString(buf);
if (pos >= 0) {
- p += _snprintf(p, sizeof(buf)-1, "Error (%d): ", pos);
+ p += _snprintf(p, sizeof(buf)-1, "Error (%lld): ", (long long)pos);
*p = '\0';
OutputDebugString(buf);
if (gErrFile)