fix int overflow
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ func (uf *UploadForm) IntoResource() *services.Resource {
|
||||
Name: uf.Name.Value,
|
||||
Editor: uf.Editor.Value,
|
||||
Authors: uf.Authors.Value,
|
||||
Year: uint16(uf.Year.Value),
|
||||
Year: uf.Year.Value,
|
||||
Keywords: nil,
|
||||
Content: bytes.NewBuffer(uf.File.Value.content),
|
||||
}
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ type Resource struct {
|
||||
Description *string
|
||||
Editor string
|
||||
Authors []string
|
||||
Year uint16
|
||||
Year int
|
||||
Keywords []string
|
||||
Content *bytes.Buffer
|
||||
Path string
|
||||
|
||||
Reference in New Issue
Block a user