@@ -1059,7 +1059,7 @@ static void cp_decl_gccattribute(CPState *cp, CPDecl *decl)
10591059 if (cp -> tok == CTOK_IDENT ) {
10601060 GCstr * attrstr = cp -> str ;
10611061 cp_next (cp );
1062- switch (attrstr -> hash ) {
1062+ switch (lj_str_indep_hash ( attrstr ) ) {
10631063 case H_ (64 a9208e ,8 ce14319 ): case H_ (8e6331b2 ,95 a282af ): /* aligned */
10641064 cp_decl_align (cp , decl );
10651065 break ;
@@ -1128,7 +1128,7 @@ static void cp_decl_msvcattribute(CPState *cp, CPDecl *decl)
11281128 while (cp -> tok == CTOK_IDENT ) {
11291129 GCstr * attrstr = cp -> str ;
11301130 cp_next (cp );
1131- switch (attrstr -> hash ) {
1131+ switch (lj_str_indep_hash ( attrstr ) ) {
11321132 case H_ (bc2395fa ,98f 267f 8 ): /* align */
11331133 cp_decl_align (cp , decl );
11341134 break ;
@@ -1718,16 +1718,16 @@ static void cp_pragma(CPState *cp, BCLine pragmaline)
17181718{
17191719 cp_next (cp );
17201720 if (cp -> tok == CTOK_IDENT &&
1721- cp -> str -> hash == H_ (e79b999f ,42 ca3e85 )) { /* pack */
1721+ ( lj_str_indep_hash ( cp -> str )) == H_ (e79b999f ,42 ca3e85 )) { /* pack */
17221722 cp_next (cp );
17231723 cp_check (cp , '(' );
17241724 if (cp -> tok == CTOK_IDENT ) {
1725- if (cp -> str -> hash == H_ (738e923c ,a1b65954 )) { /* push */
1725+ if (lj_str_indep_hash ( cp -> str ) == H_ (738e923c ,a1b65954 )) { /* push */
17261726 if (cp -> curpack < CPARSE_MAX_PACKSTACK ) {
17271727 cp -> packstack [cp -> curpack + 1 ] = cp -> packstack [cp -> curpack ];
17281728 cp -> curpack ++ ;
17291729 }
1730- } else if (cp -> str -> hash == H_ (6 c71cf27 ,6 c71cf27 )) { /* pop */
1730+ } else if (lj_str_indep_hash ( cp -> str ) == H_ (6 c71cf27 ,6 c71cf27 )) { /* pop */
17311731 if (cp -> curpack > 0 ) cp -> curpack -- ;
17321732 } else {
17331733 cp_errmsg (cp , cp -> tok , LJ_ERR_XSYMBOL );
@@ -1777,12 +1777,12 @@ static void cp_decl_multi(CPState *cp)
17771777 cp_line (cp , hashline );
17781778 continue ;
17791779 } else if (tok == CTOK_IDENT &&
1780- cp -> str -> hash == H_ (187 aab88 ,fcb60b42 )) { /* line */
1780+ lj_str_indep_hash ( cp -> str ) == H_ (187 aab88 ,fcb60b42 )) { /* line */
17811781 if (cp_next (cp ) != CTOK_INTEGER ) cp_err_token (cp , tok );
17821782 cp_line (cp , hashline );
17831783 continue ;
17841784 } else if (tok == CTOK_IDENT &&
1785- cp -> str -> hash == H_ (f5e6b4f8 ,1d 509107 )) { /* pragma */
1785+ lj_str_indep_hash ( cp -> str ) == H_ (f5e6b4f8 ,1d 509107 )) { /* pragma */
17861786 cp_pragma (cp , hashline );
17871787 continue ;
17881788 } else {
0 commit comments