summary refs log tree commit diff stats
path: root/compiler/platform.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/platform.nim')
-rw-r--r--compiler/platform.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/platform.nim b/compiler/platform.nim
index 5245cba6a..2e78d4fc5 100644
--- a/compiler/platform.nim
+++ b/compiler/platform.nim
@@ -200,10 +200,10 @@ proc setTarget*(o: TSystemOS, c: TSystemCPU) =
   #echo "new Target: OS: ", o, " CPU: ", c
   targetCPU = c
   targetOS = o
-  intSize = cpu[c].intSize div 8
-  floatSize = cpu[c].floatSize div 8
-  ptrSize = cpu[c].bit div 8
-  tnl = os[o].newLine
+  intSize = CPU[c].intSize div 8
+  floatSize = CPU[c].floatSize div 8
+  ptrSize = CPU[c].bit div 8
+  tnl = OS[o].newLine
 
 proc nameToOS(name: string): TSystemOS = 
   for i in countup(succ(osNone), high(TSystemOS)):