From b227f361cebf9d69d8edd82e5112fe0cdddddfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristram=20Gr=C3=A4bener?= Date: Wed, 21 Feb 2024 13:20:47 +0100 Subject: [PATCH] Avoid using enum = null for older flatc versions (ubuntu 22.04) --- schema/lrs.fbs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schema/lrs.fbs b/schema/lrs.fbs index f544b73..e23a65a 100644 --- a/schema/lrs.fbs +++ b/schema/lrs.fbs @@ -52,14 +52,14 @@ table Node { connections:[Connection] (required); } -enum Endpoint : byte { Begin = 1, End = 2 } +enum Endpoint : byte { Unknown = 0, Begin = 1, End = 2 } /// A connection links a node to a segment table Connection { properties:[Property]; segment_index:uint64; /// A segment is oriented. The endpoint indicates what end of the segment is connected to the node - endpoint:Endpoint = null; + endpoint:Endpoint; } /// A traversal is a path in a network. @@ -143,7 +143,7 @@ enum GeometryType : byte { Geographic = 1, Schematic = 2 } table GeometryView { properties:[Property]; - geometry_type:GeometryType = null; + geometry_type:GeometryType = Geographic; anchors:[AnchorGeometry] (required); /// Must be the same size as the top level network array networks:[NetworkGeometry] (required);