Skip to content

Commit 8e850dc

Browse files
author
Naoki INADA
committed
Fix compile error.
1 parent d44108c commit 8e850dc

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

msgpack/pack.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
#if _MSC_VER
19-
typedef signed char uint8_t;
20-
typedef unsigned char uint8_t;
21-
typedef short int16_t;
22-
typedef unsigned short uint16_t;
23-
typedef int int32_t;
24-
typedef unsigned int uint32_t;
25-
typedef long long int64_t;
26-
typedef unsigned long long uint64_t;
27-
#else
28-
#include <stdint.h>
29-
#endif
3018

3119
#include <stddef.h>
3220
#include <stdlib.h>

msgpack/unpack.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace std;
2828
struct array_context {
2929
unsigned int size;
3030
unsigned int last;
31-
stack_item(unsigned int size) : size(size), last(0)
31+
array_context(unsigned int size) : size(size), last(0)
3232
{}
3333
};
3434
struct unpack_user {
@@ -116,7 +116,7 @@ static inline int template_callback_false(unpack_user* u, msgpack_unpack_object*
116116
static inline int template_callback_array(unpack_user* u, unsigned int n, msgpack_unpack_object* o)
117117
{
118118
if (n > 0) {
119-
u->array_stack.push(stack_item(n));
119+
u->array_stack.push(array_context(n));
120120
*o = PyList_New(n);
121121
}
122122
else {

0 commit comments

Comments
 (0)