]> git.pond.sub.org Git - empserver/blobdiff - include/empobj.h
Store sequence numbers more compactly
[empserver] / include / empobj.h
index 373ec0212ea745376a556258bee78b6ad0f7f155..9574073d071e65f7437f6b450330f9f7c19b267d 100644 (file)
@@ -55,9 +55,9 @@ struct empobj {
      * initial part must match struct emptypedstr
      * valid if EFF_TYPED is set in table's flags
      */
-    short ef_type;
-    short uid;
-    unsigned seqno;
+    signed ef_type: 8;
+    unsigned seqno: 12;
+    int uid;
     time_t timestamp;
     /* end of part matching struct emptypedstr */
     natid own;         /* valid if EFF_OWNER is in table's flags */
@@ -76,7 +76,6 @@ struct empobj {
 };
 
 union empobj_storage {
-    short ef_type;
     struct empobj gen;
     struct comstr comm;
     struct gamestr game;