Cold case #9191 fixes for NC30 compiler for the M16 mcu, reported by Bjorn Sundman.

This commit is contained in:
christiaans
2006-10-25 07:51:17 +00:00
parent 5fcf6418cf
commit bd86f95512
2 changed files with 7 additions and 7 deletions

View File

@@ -180,8 +180,8 @@ enum NPmode {
#define GETSHORT(s, cp) { \
(s) = *(cp)++ << 8; \
(s) |= *(cp)++; \
(s) = *(cp); (cp)++; (s) << 8; \
(s) |= *(cp); (cp)++; \
}
#define PUTSHORT(s, cp) { \
*(cp)++ = (u_char) ((s) >> 8); \
@@ -189,10 +189,10 @@ enum NPmode {
}
#define GETLONG(l, cp) { \
(l) = *(cp)++ << 8; \
(l) |= *(cp)++; (l) <<= 8; \
(l) |= *(cp)++; (l) <<= 8; \
(l) |= *(cp)++; \
(l) = *(cp); (cp)++; (l) << 8; \
(l) |= *(cp); (cp)++; (l) <<= 8; \
(l) |= *(cp); (cp)++; (l) <<= 8; \
(l) |= *(cp); (cp)++; \
}
#define PUTLONG(l, cp) { \
*(cp)++ = (u_char) ((l) >> 24); \