faced struct alignment problems

Wed, 16 Apr 2014 21:46:34 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 16 Apr 2014 21:46:34 +0200
changeset 41
a8346dcf7bbf
parent 40
47162a7621da
child 42
21cb830efe91

faced struct alignment problems

src/chess/rules.h file | annotate | diff | comparison | revisions
src/network.h file | annotate | diff | comparison | revisions
--- a/src/chess/rules.h	Wed Apr 16 21:16:05 2014 +0200
+++ b/src/chess/rules.h	Wed Apr 16 21:46:34 2014 +0200
@@ -81,10 +81,10 @@
     uint8_t tofile;
     uint8_t torow;
     uint8_t promotion;
+    uint8_t check;
+    uint8_t capture;
     struct movetimeval timestamp;
     struct movetimeval movetime;
-    uint8_t check;
-    uint8_t capture;
 } Move;
 
 typedef struct MoveList MoveList;
--- a/src/network.h	Wed Apr 16 21:16:05 2014 +0200
+++ b/src/network.h	Wed Apr 16 21:46:34 2014 +0200
@@ -48,7 +48,7 @@
 #define NETCODE_STALEMATE 0x25
 #define NETCODE_TIMEOVER 0x26
 
-#define NETCODE_VERSION 11
+#define NETCODE_VERSION 12
 
 typedef struct {
     int fd; /* -1, if we are the client */

mercurial