From ab83ed91f1f66c3a8dcec7f6fefbc64e8aa065ea Mon Sep 17 00:00:00 2001 From: Tyler Rhodes Date: Sat, 24 Mar 2018 09:02:30 -0700 Subject: [PATCH] Fix building on 32-bit machines. --- spec.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec.go b/spec.go index 5f25825..ada1568 100644 --- a/spec.go +++ b/spec.go @@ -13,7 +13,7 @@ import ( type Constant struct { Symbol string ` @Ident` - Int int `| @Int` + Int uint64 `| @Int` } type FlagAst struct { @@ -41,7 +41,7 @@ type MinSegment struct { // Only one of these values will be set. type Value struct { String string ` @String` - Int int `| @Int` + Int uint64 `| @Int` Flags []*FlagAst `| @@ { @@ }` ConstantValue *Summand `| @@` MaxSegment *MaxSegment `| @@` @@ -92,12 +92,12 @@ type Positioning struct { AfterSegment string AfterMinSegment [2]string AfterMaxSegment [2]string - Address int + Address uint64 } type StackInfo struct { Start string - Offset int + Offset uint64 } type Segment struct { @@ -106,8 +106,8 @@ type Segment struct { StackInfo *StackInfo Positioning Positioning Entry *string - MaxSize int - Align int + MaxSize uint64 + Align uint64 Flags Flags }