Unified · Split
| @@ -134,8 +134,16 @@ ST_FUNC void gen_le16 (int i) · 133 unmodified lines | ||
| 134 | 134 | |
| 135 | 135 | ST_FUNC void gen_le32 (int i) |
| 136 | 136 | { |
| 137 | − gen_le16(i); | |
| 138 | − gen_le16(i>>16); | |
| 137 | + int ind1; | |
| 138 | + if (nocode_wanted) | |
| 139 | + return; | |
| 140 | + ind1 = ind + 4; | |
| 141 | + if (ind1 > cur_text_section->data_allocated) | |
| 142 | + section_realloc(cur_text_section, ind1); | |
| 143 | + cur_text_section->data[ind++] = i & 0xFF; | |
| 144 | + cur_text_section->data[ind++] = (i >> 8) & 0xFF; | |
| 145 | + cur_text_section->data[ind++] = (i >> 16) & 0xFF; | |
| 146 | + cur_text_section->data[ind++] = (i >> 24) & 0xFF; | |
| 139 | 147 | } |
| 140 | 148 | |
| 141 | 149 | ST_FUNC void gen_expr32(ExprValue *pe) |