summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottmg <scottmg@chromium.org>2015-06-23 13:37:08 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-23 20:38:54 +0000
commit73a2484753cd6b2e4af673cd6dc752ba5b00c116 (patch)
tree6aee0d34c1fa954b4f6be5869e257ac1060c986f
parentafc7d534cbde1d1da6f764cc3b4adce7147d9f59 (diff)
downloadchromium_src-73a2484753cd6b2e4af673cd6dc752ba5b00c116.zip
chromium_src-73a2484753cd6b2e4af673cd6dc752ba5b00c116.tar.gz
chromium_src-73a2484753cd6b2e4af673cd6dc752ba5b00c116.tar.bz2
Fix incorrect libxml fprintf, erroring on clang win x64
R=thakis@chromium.org BUG=https://bugzilla.gnome.org/show_bug.cgi?id=751410 BUG=82385 Review URL: https://codereview.chromium.org/1204813002 Cr-Commit-Position: refs/heads/master@{#335736}
-rw-r--r--third_party/libxml/README.chromium1
-rw-r--r--third_party/libxml/src/timsort.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/third_party/libxml/README.chromium b/third_party/libxml/README.chromium
index 682c659..63b9cd1 100644
--- a/third_party/libxml/README.chromium
+++ b/third_party/libxml/README.chromium
@@ -14,6 +14,7 @@ Modifications:
chromium/include/libxml/libxml_utils.h.
- Import https://git.gnome.org/browse/libxml2/commit/?id=7580ce0a7f53891de520fed2c0e360266c286da6
from upstream.
+- Import https://bugzilla.gnome.org/show_bug.cgi?id=751410.
To import a new snapshot:
diff --git a/third_party/libxml/src/timsort.h b/third_party/libxml/src/timsort.h
index efa3aab..43cb1fa 100644
--- a/third_party/libxml/src/timsort.h
+++ b/third_party/libxml/src/timsort.h
@@ -27,6 +27,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#elif defined(WIN32)
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
+#if !defined(PRIuS)
+#define PRIuS "Iu"
+#endif
#endif
#endif
@@ -323,7 +326,7 @@ static void TIM_SORT_RESIZE(TEMP_STORAGE_T *store, const size_t new_size)
SORT_TYPE *tempstore = (SORT_TYPE *)realloc(store->storage, new_size * sizeof(SORT_TYPE));
if (tempstore == NULL)
{
- fprintf(stderr, "Error allocating temporary storage for tim sort: need %lu bytes", sizeof(SORT_TYPE) * new_size);
+ fprintf(stderr, "Error allocating temporary storage for tim sort: need %" PRIuS " bytes", sizeof(SORT_TYPE) * new_size);
exit(1);
}
store->storage = tempstore;