Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
c910282c
Commit
c910282c
authored
Sep 23, 1999
by
David Lawrence
Browse files
Shut up MSVC++ compiler warning about loss of precision when assigning
8 bits masked out of a 32 bit int to individual bytes.
parent
df1e2d49
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/isc/buffer.c
View file @
c910282c
...
...
@@ -378,10 +378,10 @@ isc_buffer_putuint32(isc_buffer_t *b, isc_uint32_t val)
cp
=
b
->
base
;
cp
+=
b
->
used
;
b
->
used
+=
4
;
cp
[
0
]
=
(
val
&
0xff000000
)
>>
24
;
cp
[
1
]
=
(
val
&
0x00ff0000
)
>>
16
;
cp
[
2
]
=
(
val
&
0x0000ff00
)
>>
8
;
cp
[
3
]
=
(
val
&
0x000000ff
);
cp
[
0
]
=
(
unsigned
char
)(
(
val
&
0xff000000
)
>>
24
)
;
cp
[
1
]
=
(
unsigned
char
)(
(
val
&
0x00ff0000
)
>>
16
)
;
cp
[
2
]
=
(
unsigned
char
)(
(
val
&
0x0000ff00
)
>>
8
)
;
cp
[
3
]
=
(
unsigned
char
)
(
val
&
0x000000ff
);
}
isc_result_t
...
...
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