projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
e82854b
)
types: missing 'long double' in psi_t_size() and psi_t_alignment()
author
Michael Wallner
<mike@php.net>
Wed, 8 Feb 2017 19:06:44 +0000
(20:06 +0100)
committer
Michael Wallner
<mike@php.net>
Wed, 8 Feb 2017 19:06:44 +0000
(20:06 +0100)
src/token.h
patch
|
blob
|
history
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;
+#ifdef HAVE_LONG_DOUBLE
+ case PSI_T_LONG_DOUBLE:
+ return ALIGNOF_LONG_DOUBLE;
+#endif
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;
+#ifdef HAVE_LONG_DOUBLE
+ case PSI_T_LONG_DOUBLE:
+ return SIZEOF_LONG_DOUBLE;
+#endif
default:
assert(!t);
}