[v2,16/17] ansification: fix makedoc for ANSI C

Message ID 20171207181909.1112-17-yselkowi@redhat.com
State New
Headers show
Series
  • Newlib ANSI-fication
Related show

Commit Message

Yaakov Selkowitz Dec. 7, 2017, 6:19 p.m.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>

---
 newlib/doc/makedoc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.15.1

Patch

diff --git a/newlib/doc/makedoc.c b/newlib/doc/makedoc.c
index 45ddfb81e..23d5e2a04 100644
--- a/newlib/doc/makedoc.c
+++ b/newlib/doc/makedoc.c
@@ -1276,13 +1276,13 @@  DEFUN(compile, (string),
 		     /* Got a number, embedd the magic push number
 			function */
 		     add_to_definition(ptr, push_number);
-		     add_to_definition(ptr, atol(word));
+		     add_to_definition(ptr, (stinst_type)atol(word));
 		     break;
 		   default:
 		     add_to_definition(ptr, call);
 		     lookup = lookup_word(word);
 		     if (!lookup) ret++;
-		     add_to_definition(ptr, lookup);
+		     add_to_definition(ptr, (stinst_type)lookup);
 		 }
 
 		string = nextword(string, &word);