Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2015-01-15 00:15:36 +0300
committerJeff Johnston <jjohnstn@redhat.com>2015-01-15 00:15:36 +0300
commit4fab65dc6b5affe598bcb24af5df51df07fa83a2 (patch)
treeb1a4acfebf2ea0d23115d0382528febb81e7aa3b /newlib/doc
parent1148cf6f5465fbd2acc4f0d4f4ba978502b9cd7e (diff)
2015-01-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* doc/makedoc.c: Use uintptr_t to avoid int/pointer size warnings
Diffstat (limited to 'newlib/doc')
-rw-r--r--newlib/doc/makedoc.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/newlib/doc/makedoc.c b/newlib/doc/makedoc.c
index 7d38a5db8..718864294 100644
--- a/newlib/doc/makedoc.c
+++ b/newlib/doc/makedoc.c
@@ -40,6 +40,7 @@ There is no
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
+#include <stdint.h>
#define DEF_SIZE 5000
#define STACK 50
@@ -219,10 +220,10 @@ typedef void (*stinst_type)(NOARGS);
stinst_type *pc;
stinst_type sstack[STACK];
stinst_type *ssp = &sstack[0];
-int istack[STACK];
-int *isp = &istack[0];
+uintptr_t istack[STACK];
+uintptr_t *isp = &istack[0];
-typedef int *word_type;
+typedef uintptr_t *word_type;
@@ -270,7 +271,7 @@ WORD(push_number)
{
isp++;
pc++;
- *isp = (int)(*pc);
+ *isp = (uintptr_t)(*pc);
pc++;
}
@@ -1338,7 +1339,7 @@ return(ret);
static void DEFUN_VOID(bang)
{
-*(int *)((isp[0])) = isp[-1];
+*(uintptr_t *)((isp[0])) = isp[-1];
isp-=2;
pc++;
@@ -1346,7 +1347,7 @@ pc++;
WORD(atsign)
{
- isp[0] = *(int *)(isp[0]);
+ isp[0] = *(uintptr_t *)(isp[0]);
pc++;
}