aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-08-13 09:02:44 -0700
committerDmitry Vyukov <dvyukov@google.com>2016-08-13 09:02:44 -0700
commit3b9fe41fe301d572eede9309bc9d724739425be2 (patch)
tree60e350c16fd0aa597bda6bb2dc9d842d2a6e2187
parentae9d77a96b2aa8bb54904bf314587901fd7e7bba (diff)
reformat sources
-rw-r--r--prog/rand.go2
-rw-r--r--sys/decl.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/prog/rand.go b/prog/rand.go
index 4a41ff5ab..f4e35ffb4 100644
--- a/prog/rand.go
+++ b/prog/rand.go
@@ -72,7 +72,7 @@ func (r *randGen) randInt() uintptr {
}
func (r *randGen) randRangeInt(begin int64, end int64) uintptr {
- return uintptr(begin + r.Int63n(end - begin + 1))
+ return uintptr(begin + r.Int63n(end-begin+1))
}
// biasedRand returns a random int in range [0..n),
diff --git a/sys/decl.go b/sys/decl.go
index 4c85b9b53..62936304f 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -390,10 +390,10 @@ const (
type IntType struct {
TypeCommon
- TypeSize uintptr
- Kind IntKind
+ TypeSize uintptr
+ Kind IntKind
RangeBegin int64
- RangeEnd int64
+ RangeEnd int64
}
func (t IntType) Size() uintptr {