Fix 64-bit builds of tiny interpreters
This commit is contained in:
parent
ec7601076a
commit
dc90139bc0
|
@ -26,8 +26,13 @@
|
|||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __LP64__
|
||||
typedef u_int64_t value_t;
|
||||
typedef int64_t number_t;
|
||||
#else
|
||||
typedef u_int32_t value_t;
|
||||
typedef int32_t number_t;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
value_t car;
|
||||
|
|
|
@ -47,8 +47,13 @@
|
|||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __LP64__
|
||||
typedef u_int64_t value_t;
|
||||
typedef int64_t number_t;
|
||||
#else
|
||||
typedef u_int32_t value_t;
|
||||
typedef int32_t number_t;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
value_t car;
|
||||
|
|
|
@ -32,12 +32,21 @@
|
|||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __LP64__
|
||||
typedef u_int64_t value_t;
|
||||
#else
|
||||
typedef u_int32_t value_t;
|
||||
#endif
|
||||
|
||||
#ifdef FLOAT
|
||||
typedef float number_t;
|
||||
#else
|
||||
#ifdef __LP64__
|
||||
typedef int64_t number_t;
|
||||
#else
|
||||
typedef int32_t number_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
value_t car;
|
||||
|
|
Loading…
Reference in New Issue