Commit a1b77a9248062a3ccf14c8f8399670a9e23f6fde

Authored by totoro
1 parent e9b2d3fb

add convert from DB_id to Word32

Showing 1 changed file with 12 additions and 0 deletions   Show diff stats
database/db_types.anubis
... ... @@ -67,6 +67,18 @@ public define Int
67 67 db_id(_idx) then _idx
68 68 }.
69 69  
  70 +public define Word32
  71 + to_Word32
  72 + (
  73 + DB_id idx
  74 + )=
  75 + if idx is
  76 + {
  77 + none then 0xFFFFFFFF,
  78 + db_id(_idx) then truncate_to_Word32(_idx)
  79 + }
  80 +.
  81 +
70 82 public define DB_id
71 83 to_DB_id
72 84 (
... ...