Unified · Split
| @@ -40,8 +40,16 @@ ST_FUNC void gen_le16 (int i) · 39 unmodified lines | |||
| 40 | 40 | ||
| 41 | ST_FUNC void gen_le32 (int i) | 41 | ST_FUNC void gen_le32 (int i) |
| 42 | { | 42 | { |
| 43 | gen_le16(i); | 43 | int ind1; |
| 44 | gen_le16(i>>16); | 44 | if (nocode_wanted) |
| 45 | return; | ||
| 46 | ind1 = ind + 4; | ||
| 47 | if (ind1 > cur_text_section->data_allocated) | ||
| 48 | section_realloc(cur_text_section, ind1); | ||
| 49 | cur_text_section->data[ind++] = i & 0xFF; | ||
| 50 | cur_text_section->data[ind++] = (i >> 8) & 0xFF; | ||
| 51 | cur_text_section->data[ind++] = (i >> 16) & 0xFF; | ||
| 52 | cur_text_section->data[ind++] = (i >> 24) & 0xFF; | ||
| 45 | } | 53 | } |
| 46 | 54 | ||
| 47 | ST_FUNC void gen_expr32(ExprValue *pe) | 55 | ST_FUNC void gen_expr32(ExprValue *pe) |