We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2276516 commit f65046bCopy full SHA for f65046b
ext/mysqlnd/mysqlnd_portability.h
@@ -191,10 +191,10 @@ typedef union {
191
(((uint32_t) (zend_uchar) (A)[2]) << 16) |\
192
(((uint32_t) (zend_uchar) (A)[1]) << 8) | \
193
((uint32_t) (zend_uchar) (A)[0])))
194
-#define sint4korr(A) (int32_t) (((int32_t) ((zend_uchar) (A)[0])) +\
195
- (((int32_t) ((zend_uchar) (A)[1]) << 8)) +\
196
- (((int32_t) ((zend_uchar) (A)[2]) << 16)) +\
197
- (((int32_t) ((int16_t) (A)[3]) << 24)))
+#define sint4korr(A) (int32_t) (((uint32_t) ((A)[0])) +\
+ (((uint32_t) ((A)[1]) << 8)) +\
+ (((uint32_t) ((A)[2]) << 16)) +\
+ (((uint32_t) ((A)[3]) << 24)))
198
199
#define sint8korr(A) (int64_t) uint8korr(A)
200
#define uint2korr(A) (uint16_t) (((uint16_t) ((zend_uchar) (A)[0])) +\
0 commit comments