projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0de4f3f
)
Restore the ''import "unsafe'' removed in 36daedf35fd0cc2ad0e5e24d187b25613c13660e.
author
Manolama
<clarsen@euphoriaaudio.com>
Fri, 9 Dec 2016 06:15:20 +0000
(22:15 -0800)
committer
Chris Larsen
<clarsen@yahoo-inc.com>
Fri, 9 Dec 2016 06:19:33 +0000
(22:19 -0800)
This was causing build failures with tools dependent on Flatbuffers in Go.
E.g.
go/src/github.com/google/flatbuffers/go/sizes.go:50: undefined: unsafe in unsafe.Pointer
go/sizes.go
patch
|
blob
|
history
diff --git
a/go/sizes.go
b/go/sizes.go
index
30b2e92
..
e72b44f
100644
(file)
--- a/
go/sizes.go
+++ b/
go/sizes.go
@@
-1,5
+1,9
@@
package flatbuffers
+import (
+ "unsafe"
+)
+
const (
// See http://golang.org/ref/spec#Numeric_types