antirez / antirez/lua-cmsgpack

Compile error with MSVC2010

Đang mở
#52 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
383
Fork
122
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Please swap lines 549/550 to

void mp_decode_to_lua_array(lua_State *L, mp_cur *c, size_t len) {
int index = 1;
assert(len <= UINT_MAX);

as VC2010 otherwise complains about a variable "index" defined in the middle of a C block.
Variables have to be declared in the first line - in a pure C program...

Regards,
Helmut

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.