diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 7c11d3e9af..79bf11bd2f 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -13,8 +13,7 @@ proc mangleField(name: string): string = result = mangle(name) - if name[0] in 'a'..'z': - result[0] = name[0].toUpper + result[0] = result[0].toUpper proc isKeyword(w: PIdent): bool = # nimrod and C++ share some keywords