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
     1.1 --- a/src/chess/rules.h	Wed Apr 16 21:16:05 2014 +0200
     1.2 +++ b/src/chess/rules.h	Wed Apr 16 21:46:34 2014 +0200
     1.3 @@ -81,10 +81,10 @@
     1.4      uint8_t tofile;
     1.5      uint8_t torow;
     1.6      uint8_t promotion;
     1.7 +    uint8_t check;
     1.8 +    uint8_t capture;
     1.9      struct movetimeval timestamp;
    1.10      struct movetimeval movetime;
    1.11 -    uint8_t check;
    1.12 -    uint8_t capture;
    1.13  } Move;
    1.14  
    1.15  typedef struct MoveList MoveList;
     2.1 --- a/src/network.h	Wed Apr 16 21:16:05 2014 +0200
     2.2 +++ b/src/network.h	Wed Apr 16 21:46:34 2014 +0200
     2.3 @@ -48,7 +48,7 @@
     2.4  #define NETCODE_STALEMATE 0x25
     2.5  #define NETCODE_TIMEOVER 0x26
     2.6  
     2.7 -#define NETCODE_VERSION 11
     2.8 +#define NETCODE_VERSION 12
     2.9  
    2.10  typedef struct {
    2.11      int fd; /* -1, if we are the client */

mercurial