Do not use `bool` type; use new `bt_bool` instead
[babeltrace.git] / include / babeltrace / ctf-writer / serialize-internal.h
index 15ced8debe823b0f048b2cf93ff3284eb3e0a098..6471993c23a5c739c5e3e1b87c1446fb46c354d3 100644 (file)
@@ -37,6 +37,7 @@
 #include <babeltrace/ctf-ir/fields-internal.h>
 #include <babeltrace/align-internal.h>
 #include <babeltrace/mmap-align-internal.h>
+#include <babeltrace/types.h>
 
 struct bt_ctf_stream_pos {
        int fd;
@@ -110,7 +111,7 @@ char *bt_ctf_stream_pos_get_addr(struct bt_ctf_stream_pos *pos)
 {
        /* Only makes sense to get the address after aligning on CHAR_BIT */
        assert(!(pos->offset % CHAR_BIT));
-       return mmap_align_addr(pos->base_mma) +
+       return ((char *) mmap_align_addr(pos->base_mma)) +
                pos->mmap_base_offset + (pos->offset / CHAR_BIT);
 }
 
@@ -130,7 +131,7 @@ int bt_ctf_stream_pos_init(struct bt_ctf_stream_pos *pos,
                pos->flags = MAP_SHARED;
                break;
        default:
-               assert(false);
+               assert(BT_FALSE);
        }
 
        return 0;
This page took 0.022892 seconds and 4 git commands to generate.