Skip to content

Commit 2aeb6da

Browse files
committed
Static_assert
1 parent 898e9ca commit 2aeb6da

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

jsrc/io.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,8 @@ JS _Initializer(void* hDLL){
924924
#else
925925
getsopath(sopath);
926926
#endif
927+
// extern int getsize_xdic_DIC(void);
928+
// fprintf(stderr,"sizeof(DIC) "FMTI" \n",(I)getsize_xdic_DIC());
927929
JS jt=jvmreservea(sizeof(JST),__builtin_ctz(JTALIGNBDY));
928930
if(!jt)R 0;
929931
I sz=offsetof(JST,threaddata[1]); // #relevant bytes: just JS and the first JT. This makes MDTHREAD() valid

jsrc/xdic.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ typedef struct ADic {
149149
#if 7==NORMAH
150150
_Static_assert(sizeof(DIC)==32*SZI,"DIC not 32 Is");
151151
#else
152+
#if SY_64
152153
_Static_assert(sizeof(DIC)==33*SZI,"DIC not 33 Is");
154+
#else
155+
_Static_assert(sizeof(DIC)==34*SZI,"DIC not 34 Is");
156+
#endif
153157
#endif
154158
int getsize_xdic_DIC(void){return (int)sizeof(DIC);} // temp for debugging
155159

0 commit comments

Comments
 (0)