d/dmd: Merge dmd upstream e21c07e84
authorIain Buclaw <ibuclaw@gcc.gnu.org>
Tue, 22 Jan 2019 22:30:56 +0000 (22:30 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Tue, 22 Jan 2019 22:30:56 +0000 (22:30 +0000)
Fixes bootstrap regression introduced by the previous merge.

Reviewed-on: https://github.com/dlang/dmd/pull/9283

From-SVN: r268167

gcc/d/dmd/MERGE
gcc/d/dmd/mtype.c

index e8ab8df4f7bfe43028d83b4dce756bc917ea18d2..c1c6cc145c4be0334f9e2641253239940e4c9444 100644 (file)
@@ -1,4 +1,4 @@
-180465274b72a2ff218449f6793af0fbaabbcaa3
+e21c07e84bd9668e1c0fc1f45e514c5fd76988e7
 
 The first line of this file holds the git revision number of the last
 merge done from the dlang/dmd repository.
index 09161a313eefed778b7d7d8ce74db5a8ec079f94..2a23cab74fd23de57c01a1fa7ac7350fcc35eb61 100644 (file)
@@ -2326,7 +2326,7 @@ Identifier *Type::getTypeInfoIdent()
 
     int length = sprintf(name, "_D%lluTypeInfo_%s6__initZ", (unsigned long long) 9 + len, buf.data);
     //printf("%p, deco = %s, name = %s\n", this, deco, name);
-    assert(0 < length && length < namelen);     // don't overflow the buffer
+    assert(0 < length && (size_t)length < namelen);     // don't overflow the buffer
 
     Identifier *id = Identifier::idPool(name, length);