Fix return value of mj_saveXML and mj_saveXMLString, fixes #2247

PiperOrigin-RevId: 700269761
Change-Id: Ifb7e9c66c70eac7d681cfcf106712d47291cf9e2
This commit is contained in:
Alessio Quaglino
2024-11-26 02:31:53 -08:00
committed by Copybara-Service
parent 6e129a5ab2
commit e310c23267
7 changed files with 19 additions and 12 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
type=ValueType(name='int'),
),
),
doc='Save spec to XML string, return 1 on success, 0 otherwise.',
doc='Save spec to XML string, return 0 on success, -1 on failure. If length of the output buffer is too small, returns the required size.', # pylint: disable=line-too-long
)),
('mj_saveXML',
FunctionDecl(