Commit ce6279bf authored by Maxime Perrotin's avatar Maxime Perrotin

Use ssize_t when function can return -1

parent c666efcc
......@@ -265,7 +265,7 @@ class C_GlueGenerator(ASynchronousToolGlueGenerator):
encoding.upper())
self.C_HeaderFile.write(needDefine)
self.C_HeaderFile.write(
"size_t %s(void *pBuffer, size_t iMaxBufferSize, %sasn1Scc%s *pSrc);\n" %
"ssize_t %s(void *pBuffer, size_t iMaxBufferSize, %sasn1Scc%s *pSrc);\n" %
(tmpSpName, "" if encoding.lower() == "acn" else "const ",
self.CleanNameAsToolWants(nodeTypename)))
self.C_HeaderFile.write("#endif\n\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment