projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
types: missing 'long double' in psi_t_size() and psi_t_alignment()
[m6w6/ext-psi]
/
src
/
token.h
diff --git
a/src/token.h
b/src/token.h
index e660a0cbb416af87cfaeef1452635a4a9eb1c5ce..65d37a2e635d6f8fdf69e7970dcb29450310917a 100644
(file)
--- a/
src/token.h
+++ b/
src/token.h
@@
-118,6
+118,10
@@
static inline size_t psi_t_alignment(token_t t)
return ALIGNOF_VOID_P;
case PSI_T_ENUM:
return ALIGNOF_INT;
return ALIGNOF_VOID_P;
case PSI_T_ENUM:
return ALIGNOF_INT;
+#ifdef HAVE_LONG_DOUBLE
+ case PSI_T_LONG_DOUBLE:
+ return ALIGNOF_LONG_DOUBLE;
+#endif
default:
assert(0);
}
default:
assert(0);
}
@@
-146,6
+150,10
@@
static inline size_t psi_t_size(token_t t)
return SIZEOF_VOID_P;
case PSI_T_ENUM:
return SIZEOF_INT;
return SIZEOF_VOID_P;
case PSI_T_ENUM:
return SIZEOF_INT;
+#ifdef HAVE_LONG_DOUBLE
+ case PSI_T_LONG_DOUBLE:
+ return SIZEOF_LONG_DOUBLE;
+#endif
default:
assert(!t);
}
default:
assert(!t);
}