Skip to content

Commit ebf6db5

Browse files
committed
Make sure Windows pointers are still 32-bit
1 parent b4c6395 commit ebf6db5

File tree

10 files changed

+14
-7
lines changed

10 files changed

+14
-7
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,6 @@ Mar 2019 (v5.1.0)
8989

9090
Apr 2019 (v5.1.1)
9191
* The 912 changes broke QJST printing
92+
93+
Jul 2019 (v5.1.2)
94+
* Make sure Windows program pointer sizes are correct

bin/aix/convH

0 Bytes
Binary file not shown.

bin/aix/mqsmfcsv

-26 Bytes
Binary file not shown.

bin/linux/mqsmfcsv

0 Bytes
Binary file not shown.

bin/win/mqsmfcsv.exe

-28.5 KB
Binary file not shown.

src/M

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ else
2626
flags="$flags $optim"
2727
fi
2828

29-
export PLATFLAGS=$flags CC=$cc VERS=912
29+
export PLATFLAGS=$flags CC=$cc VERS=913
3030
make -e -f Makefile.unix $*
3131

3232
rm -f $targdir/convH $targdir/mqsmfcsv

src/Makefile.gcc.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
CC=i686-w64-mingw32-gcc
33
CFLAGS= -I. -m32 -O2
44
PLATFLAGS=
5-
VERS=912
5+
VERS=913
66
SRC = mqsmf.c \
77
smfDDL.c \
88
smfDate.c \

src/Makefile.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CFLAGS=-nologo /D_CRT_SECURE_NO_WARNINGS /Zp1 /J /O2
2-
VERS=912
2+
VERS=913
33
SRC = mqsmf.c \
44
smfDDL.c \
55
smfDate.c \

src/m2017.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
rem This sets the environment for Visual Studio 2017
2-
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build"\vcvarsall x86_amd64
2+
rem Make sure we set up for a 32-bit program
3+
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build"\vcvarsall x86

src/mqsmf.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,14 @@ int main( int argc, char *argv[] )
228228
if ((sizeof(short) != 2) ||
229229
(sizeof(long) != 4) ||
230230
(sizeof(long long) != 8) ||
231+
(sizeof(int *) != 4) ||
231232
(sizeof(int) != 4))
232233
{
233234
fprintf(stderr,"Data type sizes do not match requirements.\n");
234235
fprintf(stderr,"Need to rebuild program with correct options.\n");
235-
fprintf(stderr,"Here: short=%d int=%d long=%d long long=%d bytes\n",
236-
(int)sizeof(short), (int)sizeof(int), (int)sizeof(long), (int)sizeof(long long));
237-
fprintf(stderr,"Need: short=%d int=%d long=%d long long=%d bytes\n",2,4,4,8);
236+
fprintf(stderr,"Here: short=%d int=%d long=%d long long=%d ptr=%d bytes\n",
237+
(int)sizeof(short), (int)sizeof(int), (int)sizeof(long), (int)sizeof(long long),(int)sizeof(int *));
238+
fprintf(stderr,"Need: short=%d int=%d long=%d long long=%d ptr=%d bytes\n",2,4,4,8,4);
238239
exit(1);
239240
}
240241

@@ -947,6 +948,8 @@ int main( int argc, char *argv[] )
947948
{
948949
p = &dataBuf[triplet[2].offset ];
949950
printWTAS((wtas *)p);
951+
/* The wtasstrt is 8 bytes but the following fields combine to */
952+
/* make a default correlation token. */
950953
memcpy(correlid,&((wtas *)p)->wtasstrt,16);
951954

952955
if (conv32(((wtas *)p)->wtaswqct) > 0)

0 commit comments

Comments
 (0)