delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/01/18:31:17

From: werewolf AT stad DOT dsl DOT nl (Shadow Seeker)
Newsgroups: comp.os.msdos.djgpp
Subject: Real stupid problem.
Date: Mon, 01 Mar 1999 23:21:19 GMT
Organization: Shimmer Zone
Lines: 21
Message-ID: <36db1881.8437368@news.tudelft.nl>
NNTP-Posting-Host: willow.akira.tudelft.nl
X-Trace: news.tudelft.nl 920330654 4618 130.161.60.189 (1 Mar 1999 23:24:14 GMT)
X-Complaints-To: usenet AT news DOT tudelft DOT nl
NNTP-Posting-Date: 1 Mar 1999 23:24:14 GMT
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

struct SXM_Pat_header{
 int pat_size;
 char pack_type;
 short nr_rows;
 short pattern_data_size;
};

struct SXM_Pat_header{
 char pat_size[4];
 char pack_type;
 char nr_rows[2];
 char pattern_data_size[2];
};

These are two structures, and They should be the same size at least I
think they should be. But DJGPP manages to call the first one a size
of 12, and the second one (the correct size) 9.

 Does anyone know why? And if so, how do I fix it?

ShadSek

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019