@@ -286,14 +286,14 @@ \section{Data marshalling support \label{marshalling-utils}}
286286\end {cfuncdesc }
287287
288288\begin {cfuncdesc }{void}{PyMarshal_WriteShortToFile}{short value, FILE *file}
289- Marshal a \ctype {short} integer, \var {value}, to \var {file}.
289+ Marshal a \ctype {short} integer, \var {value}, to \var {file}. This
290+ will only write the least-significant 16 bits of \var {value};
291+ regardless of the size of the native \ctype {short} type.
290292\end {cfuncdesc }
291293
292294\begin {cfuncdesc }{void}{PyMarshal_WriteObjectToFile}{PyObject *value,
293295 FILE *file}
294- Marshal a Python object, \var {value}, to \var {file}. This
295- will only write the least-significant 16 bits of \var {value};
296- regardless of the size of the native \ctype {short} type.
296+ Marshal a Python object, \var {value}, to \var {file}.
297297\end {cfuncdesc }
298298
299299\begin {cfuncdesc }{PyObject*}{PyMarshal_WriteObjectToString}{PyObject *value}
@@ -318,7 +318,7 @@ \section{Data marshalling support \label{marshalling-utils}}
318318\begin {cfuncdesc }{int}{PyMarshal_ReadShortFromFile}{FILE *file}
319319 Return a C \ctype {short} from the data stream in a \ctype {FILE*}
320320 opened for reading. Only a 16-bit value can be read in using
321- this function, regardless of the native size of \ctype {long }.
321+ this function, regardless of the native size of \ctype {short }.
322322\end {cfuncdesc }
323323
324324\begin {cfuncdesc }{PyObject*}{PyMarshal_ReadObjectFromFile}{FILE *file}
0 commit comments