History

tccgen.c: Use memmove for struct assignment: dest and src may be equal.

Edmund Grimley Evans committed 11 years ago

Commit b0515491 parent 8eab5561 file · +2 −1Browse files

Unified · Split

tccgen.c+2−1
@@ -2576,7 +2576,8 @@ ST_FUNC void vstore(void) · 2575 unmodified lines
2576 vpush_global_sym(&func_old_type, TOK_memcpy4);2576 vpush_global_sym(&func_old_type, TOK_memcpy4);
2577 else2577 else
2578#endif2578#endif
2579 vpush_global_sym(&func_old_type, TOK_memcpy);2579 /* Use memmove, rather than memcpy, as dest and src may be same: */
2580 vpush_global_sym(&func_old_type, TOK_memmove);
2580 2581
2581 vswap();2582 vswap();
2582 /* source */2583 /* source */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t