Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8cf3e6

Browse files
committed
SF patch #470393 (Jim Ahlstrom): Add missing marshal function
In Include/, marshal.h declares both PyMarshal_ReadLongFromFile() and PyMarshal_ReadShortFromFile(), but the second is missing from marshal.c. [Shouldn't the return type be declared as 'short' instead of 'int'? But 'int' is what was in marshal.h all those years... --Guido]
1 parent c524d95 commit b8cf3e6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Python/marshal.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,14 @@ r_object(RFILE *p)
635635
}
636636
}
637637

638+
int
639+
PyMarshal_ReadShortFromFile(FILE *fp)
640+
{
641+
RFILE rf;
642+
rf.fp = fp;
643+
return r_short(&rf);
644+
}
645+
638646
long
639647
PyMarshal_ReadLongFromFile(FILE *fp)
640648
{

0 commit comments

Comments
 (0)