Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip Trettner
typed-geometry
Commits
0dad6e4b
Commit
0dad6e4b
authored
Dec 04, 2020
by
Philip Trettner
Browse files
conversion fix
parent
085d9130
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/typed-geometry/functions/std/io.hh
View file @
0dad6e4b
...
...
@@ -73,7 +73,7 @@ std::basic_ostream<CharT, StreamTraits>& operator<<(std::basic_ostream<CharT, St
template
<
int
w
,
class
CharT
,
class
StreamTraits
>
std
::
basic_ostream
<
CharT
,
StreamTraits
>&
operator
<<
(
std
::
basic_ostream
<
CharT
,
StreamTraits
>&
out
,
fixed_uint
<
w
>
const
&
val
)
{
c
har
buf
[
w
*
20
+
1
];
C
har
T
buf
[
w
*
20
+
1
];
auto
const
end
=
buf
+
sizeof
(
buf
);
auto
begin
=
end
;
*
(
--
begin
)
=
'\0'
;
...
...
@@ -82,10 +82,10 @@ std::basic_ostream<CharT, StreamTraits>& operator<<(std::basic_ostream<CharT, St
{
auto
const
n
=
u64
(
u
%
10
);
u
/=
10
;
*
(
--
begin
)
=
'0'
+
n
;
*
(
--
begin
)
=
CharT
(
'0'
+
n
)
;
}
if
(
begin
+
1
==
end
)
*
(
--
begin
)
=
'0'
;
*
(
--
begin
)
=
CharT
(
'0'
)
;
return
out
<<
begin
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment