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 172e5c1 commit 38691b0Copy full SHA for 38691b0
ext/mysqlnd/mysqlnd_portability.h
@@ -120,7 +120,7 @@ This file is public domain and comes with NO WARRANTY of any kind */
120
((uint32_t) (zend_uchar) (A)[0])))
121
#define sint4korr(A) (*((zend_long *) (A)))
122
123
-#define uint2korr(A) (*((uint16_t *) (A)))
+#define uint2korr(A) (((uint16_t)(A)[0]) + (((uint16_t)(A)[1]) << 8))
124
#define uint3korr(A) (uint32_t) (((uint32_t) ((zend_uchar) (A)[0])) +\
125
(((uint32_t) ((zend_uchar) (A)[1])) << 8) +\
126
(((uint32_t) ((zend_uchar) (A)[2])) << 16))
0 commit comments