projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
760e68e
)
Added ordinal comparison to string index search.
author
Jarl Gullberg
<jarl.gullberg@gmail.com>
Mon, 29 May 2017 16:59:37 +0000
(18:59 +0200)
committer
Jarl Gullberg
<jarl.gullberg@gmail.com>
Mon, 29 May 2017 16:59:37 +0000
(18:59 +0200)
src/Generator.Rewrite/Program.cs
patch
|
blob
|
history
diff --git
a/src/Generator.Rewrite/Program.cs
b/src/Generator.Rewrite/Program.cs
index
91c7b11
..
48e7a2f
100644
(file)
--- a/
src/Generator.Rewrite/Program.cs
+++ b/
src/Generator.Rewrite/Program.cs
@@
-334,7
+334,7
@@
namespace OpenTK.Rewrite
// something like "type namespace.class::method(type arg)"
var module = il.Body.Method.FullName;
module = module.Substring(module.IndexOf(' ') + 1);
- module = module.Substring(0, module.IndexOf("::"));
+ module = module.Substring(0, module.IndexOf("::"
, StringComparison.Ordinal
));
module = module.Substring(0, module.LastIndexOf('.'));
// Only works for Graphics modules due to hardcoded use of