-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand: C++ify proc macro decls generation
This uses a stringstream instead of the older, better and more readable `sprintf` version as the format overflow warning in current GCC is overzealous and triggered on that code, despite the non-zero allocation. Even using an unsigned value instead of a signed one for the `size` variable caused issues, so switching to this is simpler. gcc/rust/ChangeLog: * expand/rust-proc-macro.cc: Use stringstream instead of sprintf. * rust-system.h: Include <iomanip>.
- Loading branch information
1 parent
b864866
commit 3fcd86e
Showing
2 changed files
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters