]> git.pond.sub.org Git - empserver/blobdiff - include/trade.h
Store sequence numbers more compactly
[empserver] / include / trade.h
index 6fc9919e274414e7aa20695cf7f73bce8582ad71..72ebdbbb90b3d9261850fc1b4af76cb4f15c29b0 100644 (file)
 
 struct trdstr {
     /* initial part must match struct empobj */
-    short ef_type;
-    short trd_uid;
-    unsigned trd_seqno;
+    signed ef_type: 8;
+    unsigned trd_seqno: 12;
+    int trd_uid;
     time_t trd_timestamp;
     natid trd_owner;
     /* end of part matching struct empobj */
     short trd_type;
-    short trd_unitid;
+    int trd_unitid;
     long trd_price;
     int trd_maxbidder;
     time_t trd_markettime;