Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
4e891e4a
Commit
4e891e4a
authored
Feb 18, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7fbd77cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
go/zodb/btree/btree.go
go/zodb/btree/btree.go
+2
-3
No files found.
go/zodb/btree/btree.go
View file @
4e891e4a
...
@@ -47,8 +47,7 @@ import (
...
@@ -47,8 +47,7 @@ import (
"lab.nexedi.com/kirr/neo/go/zodb/internal/pickletools"
"lab.nexedi.com/kirr/neo/go/zodb/internal/pickletools"
)
)
// XXX Length is like BTrees.Length.Length.
// Length is equivalent of BTrees.Length.Length in BTree/py.
// XXX tests.
type
Length
struct
{
type
Length
struct
{
zodb
.
Persistent
zodb
.
Persistent
...
@@ -74,7 +73,7 @@ func (l *lengthState) PySetState(pystate interface{}) (err error) {
...
@@ -74,7 +73,7 @@ func (l *lengthState) PySetState(pystate interface{}) (err error) {
return
fmt
.
Errorf
(
"state must be int; got %T"
,
pystate
)
return
fmt
.
Errorf
(
"state must be int; got %T"
,
pystate
)
}
}
l
.
value
=
int
(
v
)
// XXX casting ok?
l
.
value
=
int
(
v
)
return
nil
return
nil
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment