projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
adaefaf
)
cast fixes.
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 2 Nov 2002 17:36:14 +0000
(17:36 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 2 Nov 2002 17:36:14 +0000
(17:36 +0000)
lib/silcutil/silctypes.h
patch
|
blob
|
history
diff --git
a/lib/silcutil/silctypes.h
b/lib/silcutil/silctypes.h
index 5eb0c84b658d9eea06ad3348fb9e8358f7834b00..b123cea8173e664a19eda7deaf4bb5708ff8b3bf 100644
(file)
--- a/
lib/silcutil/silctypes.h
+++ b/
lib/silcutil/silctypes.h
@@
-370,8
+370,8
@@
do { \
*/
#define SILC_PUT16_MSB(l, cp) \
do { \
*/
#define SILC_PUT16_MSB(l, cp) \
do { \
- (cp)[0] = (
unsigned char)(l) >> 8;
\
- (cp)[1] = (
unsigned char)(l);
\
+ (cp)[0] = (
SilcUInt8)((l) >> 8);
\
+ (cp)[1] = (
SilcUInt8)(l);
\
} while(0)
/***/
} while(0)
/***/
@@
-389,10
+389,10
@@
do { \
*/
#define SILC_PUT32_MSB(l, cp) \
do { \
*/
#define SILC_PUT32_MSB(l, cp) \
do { \
- (cp)[0] = (
unsigned char)(l) >> 24;
\
- (cp)[1] = (
unsigned char)(l) >> 16;
\
- (cp)[2] = (
unsigned char)(l) >> 8;
\
- (cp)[3] = (
unsigned char)(l);
\
+ (cp)[0] = (
SilcUInt8)((l) >> 24);
\
+ (cp)[1] = (
SilcUInt8)((l) >> 16);
\
+ (cp)[2] = (
SilcUInt8)((l) >> 8);
\
+ (cp)[3] = (
SilcUInt8)(l);
\
} while(0)
/***/
} while(0)
/***/
@@
-429,8
+429,8
@@
do { \
*/
#define SILC_PUT16_LSB(l, cp) \
do { \
*/
#define SILC_PUT16_LSB(l, cp) \
do { \
- (cp)[0] = (
unsigned char)(l);
\
- (cp)[1] = (
unsigned char)(l) >> 8;
\
+ (cp)[0] = (
SilcUInt8)(l);
\
+ (cp)[1] = (
SilcUInt8)((l) >> 8);
\
} while(0)
/***/
} while(0)
/***/
@@
-448,10
+448,10
@@
do { \
*/
#define SILC_PUT32_LSB(l, cp) \
do { \
*/
#define SILC_PUT32_LSB(l, cp) \
do { \
- (cp)[0] = (
unsigned char)(l);
\
- (cp)[1] = (
unsigned char)(l) >> 8;
\
- (cp)[2] = (
unsigned char)(l) >> 16;
\
- (cp)[3] = (
unsigned char)(l) >> 24;
\
+ (cp)[0] = (
SilcUInt8)(l);
\
+ (cp)[1] = (
SilcUInt8)((l) >> 8);
\
+ (cp)[2] = (
SilcUInt8)((l) >> 16);
\
+ (cp)[3] = (
SilcUInt8)((l) >> 24);
\
} while(0)
/***/
} while(0)
/***/