diff options
-rw-r--r-- | src/hub/src/spreadspace.org/sfive/s5typesStore.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/hub/src/spreadspace.org/sfive/s5typesStore.go b/src/hub/src/spreadspace.org/sfive/s5typesStore.go index e2ea6f0..cf6cc17 100644 --- a/src/hub/src/spreadspace.org/sfive/s5typesStore.go +++ b/src/hub/src/spreadspace.org/sfive/s5typesStore.go @@ -33,9 +33,9 @@ package sfive import ( - "encoding/binary" "errors" "fmt" + "strconv" "strings" "time" ) @@ -147,11 +147,10 @@ func (s *DataUpdateFull) CopyFromDataUpdateDb(v dataUpdateDb, srcHubUuid, hubUui } func itob(v int) []byte { - b := make([]byte, 8) - binary.BigEndian.PutUint64(b, uint64(v)) - return b + return []byte(strconv.Itoa(v)) } func btoi(b []byte) int { - return int(binary.BigEndian.Uint64(b)) + i, _ := strconv.Atoi(string(b)) + return i } |