projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e0ad85
)
d: Use startswith function instead of strncmp
author
Iain Buclaw
<ibuclaw@gdcproject.org>
Tue, 18 May 2021 20:56:10 +0000
(22:56 +0200)
committer
Iain Buclaw
<ibuclaw@gdcproject.org>
Tue, 18 May 2021 21:01:30 +0000
(23:01 +0200)
gcc/d/ChangeLog:
* types.cc (TypeVisitor::visit (TypeEnum *)): Use startswith function
instead of strncmp.
gcc/d/types.cc
patch
|
blob
|
history
diff --git
a/gcc/d/types.cc
b/gcc/d/types.cc
index
3b121f5
..
ba2d6d4
100644
(file)
--- a/
gcc/d/types.cc
+++ b/
gcc/d/types.cc
@@
-874,7
+874,7
@@
public:
Type *underlying = NULL;
/* Skip over the prefixing `__c_'. */
- gcc_assert (st
rncmp (ident, "__c_", strlen ("__c_")) == 0
);
+ gcc_assert (st
artswith (ident, "__c_")
);
ident = ident + strlen ("__c_");
/* To keep things compatible within the code generation we stick to