projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
raising the head after a three-weeks refactoring
[m6w6/ext-psi]
/
src
/
token.h
diff --git
a/src/token.h
b/src/token.h
index 413a14c6e236f4c9853c11a7b91228394c27af6f..68b806245d5e9f6404c9ad067cf85449b2754e9b 100644
(file)
--- a/
src/token.h
+++ b/
src/token.h
@@
-94,13
+94,14
@@
static inline size_t psi_t_size(token_t t)
return SIZEOF_FLOAT;
case PSI_T_DOUBLE:
return SIZEOF_DOUBLE;
+ case PSI_T_VOID:
case PSI_T_POINTER:
case PSI_T_FUNCTION:
return SIZEOF_VOID_P;
case PSI_T_ENUM:
return SIZEOF_INT;
default:
- assert(
0
);
+ assert(
!t
);
}
return 0;
}