Page MenuHomeFreeBSD

D26364.id76787.diff
No OneTemporary

D26364.id76787.diff

Index: stand/ficl/ficl.h
===================================================================
--- stand/ficl/ficl.h
+++ stand/ficl/ficl.h
@@ -249,7 +249,7 @@
** complement of false... that unifies logical and bitwise operations
** nicely.
*/
-#define FICL_TRUE ((unsigned long)~(0L))
+#define FICL_TRUE ((FICL_INT)~(0L))
#define FICL_FALSE (0)
#define FICL_BOOL(x) ((x) ? FICL_TRUE : FICL_FALSE)
Index: stand/ficl/powerpc/sysdep.h
===================================================================
--- stand/ficl/powerpc/sysdep.h
+++ stand/ficl/powerpc/sysdep.h
@@ -79,15 +79,15 @@
** System dependent data type declarations...
*/
#if !defined INT32
-#define INT32 int
+#define INT32 int32_t
#endif
#if !defined UNS32
-#define UNS32 unsigned int
+#define UNS32 uint32_t
#endif
#if !defined UNS16
-#define UNS16 unsigned short
+#define UNS16 uint16_t
#endif
#if !defined UNS8
@@ -367,6 +367,9 @@
*/
#if !defined FICL_ALIGN
#define FICL_ALIGN 2
+#endif
+
+#if !defined FICL_ALIGN_ADD
#define FICL_ALIGN_ADD ((1 << FICL_ALIGN) - 1)
#endif
Index: stand/powerpc/ofw/main.c
===================================================================
--- stand/powerpc/ofw/main.c
+++ stand/powerpc/ofw/main.c
@@ -63,7 +63,7 @@
{
bzero(heap, HEAP_SIZE);
- setheap(heap, (void *)((int)heap + HEAP_SIZE));
+ setheap(heap, (void *)((size_t)heap + HEAP_SIZE));
}
uint64_t

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 18, 3:29 AM (8 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29874891
Default Alt Text
D26364.id76787.diff (1 KB)

Event Timeline