Skip to content

Commit

Permalink
Fix floating point exception on 64-bit Unix when using 6-Series airfo…
Browse files Browse the repository at this point in the history
…ils.

The F2C converted 6-Series airfoil code returns its results to VSP
through an extern C struct.  The definition of this struct must exactly
match on the C++ VSP side.

On 32-bit Unix and 32/64-bit Windows, int and long are both 32-bit.
However, on 64-bit Unix, int is 32-bit and long is 64-bit.

The VSP side of the code uses ints, so the straightforward fix is to
change the typedef in the F2C code on the 6-Series side to match.
  • Loading branch information
Rob McDonald committed Feb 2, 2012
1 parent 5f3f1f0 commit 36ae2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sixseries/f2c.h
Expand Up @@ -7,7 +7,7 @@
#ifndef F2C_INCLUDE
#define F2C_INCLUDE

typedef long int integer;
typedef int integer;
typedef unsigned long int uinteger;
typedef char *address;
typedef short int shortint;
Expand Down

0 comments on commit 36ae2fe

Please sign in to comment.