Commit 17712122 authored by Jordan Sissel's avatar Jordan Sissel

- use int64 (offsets can be negative in seek calls)

parent 1362db1c
......@@ -4,7 +4,7 @@ import "os"
type FileEvent struct {
Source *string `json:"source,omitempty"`
Offset uint64 `json:"offset,omitempty"`
Offset int64 `json:"offset,omitempty"`
Line uint64 `json:"line,omitempty"`
Text *string `json:"text,omitempty"`
Fields *map[string]string
......@@ -14,7 +14,7 @@ type FileEvent struct {
type FileState struct {
Source *string `json:"source,omitempty"`
Offset uint64 `json:"offset,omitempty"`
Offset int64 `json:"offset,omitempty"`
Inode uint64 `json:"inode,omitempty"`
Device uint64 `json:"device,omitempty"`
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment