Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f70b129d
Commit
f70b129d
authored
May 25, 2009
by
Alexandre Vassalotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make variable declarations for opcodes in batch_dict_exact consistent
with the rest of the module.
parent
94f75e04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Modules/_pickle.c
Modules/_pickle.c
+5
-5
No files found.
Modules/_pickle.c
View file @
f70b129d
...
...
@@ -1715,9 +1715,9 @@ batch_dict_exact(PicklerObject *self, PyObject *obj)
int
i
;
Py_ssize_t
dict_size
,
ppos
=
0
;
static
const
char
mark_op
=
MARK
;
static
const
char
setitem
=
SETITEM
;
static
const
char
setitems
=
SETITEMS
;
const
char
mark_op
=
MARK
;
const
char
setitem_op
=
SETITEM
;
const
char
setitems_op
=
SETITEMS
;
assert
(
obj
!=
NULL
);
assert
(
self
->
proto
>
0
);
...
...
@@ -1731,7 +1731,7 @@ batch_dict_exact(PicklerObject *self, PyObject *obj)
return
-
1
;
if
(
save
(
self
,
value
,
0
)
<
0
)
return
-
1
;
if
(
pickler_write
(
self
,
&
setitem
,
1
)
<
0
)
if
(
pickler_write
(
self
,
&
setitem
_op
,
1
)
<
0
)
return
-
1
;
return
0
;
}
...
...
@@ -1749,7 +1749,7 @@ batch_dict_exact(PicklerObject *self, PyObject *obj)
if
(
++
i
==
BATCHSIZE
)
break
;
}
if
(
pickler_write
(
self
,
&
setitems
,
1
)
<
0
)
if
(
pickler_write
(
self
,
&
setitems
_op
,
1
)
<
0
)
return
-
1
;
if
(
PyDict_Size
(
obj
)
!=
dict_size
)
{
PyErr_Format
(
...
...
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