Skip to content

Instantly share code, notes, and snippets.

@flaviut
Created May 24, 2014 21:13
Show Gist options
  • Save flaviut/52539e4a24d6e84c8b14 to your computer and use it in GitHub Desktop.
Save flaviut/52539e4a24d6e84c8b14 to your computer and use it in GitHub Desktop.
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim
index 70eced0..7c11d3e 100644
--- a/compiler/ccgtypes.nim
+++ b/compiler/ccgtypes.nim
@@ -13,7 +13,7 @@
proc mangleField(name: string): string =
result = mangle(name)
- if name[0] in Letters:
+ if name[0] in 'a'..'z':
result[0] = name[0].toUpper
proc isKeyword(w: PIdent): bool =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment