Skip to content

Commit ace84c4

Browse files
committed
Fix typo in boolean constant name
1 parent e467318 commit ace84c4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/memcached.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#endif /* MEMCACHED_BUFFER_MAX */
3131

3232
/* additional 'types' */
33-
#define MEMCACHED_TYPE_BOOLEANTRRUE LUA_TBOOLEAN + 64
33+
#define MEMCACHED_TYPE_BOOLEANTRUE LUA_TBOOLEAN + 64
3434
#define MEMCACHED_TYPE_INTEGER LUA_TNUMBER + 64
3535
#define MEMCACHED_TYPE_STRINGSHORT LUA_TSTRING + 64
3636
#define MEMCACHED_TYPE_TABLE8 LUA_TTABLE
@@ -238,7 +238,7 @@ static int encode (lua_State *L, memcached_buffer_t *b, backref_t *br, int index
238238
switch (lua_type(L, index)) {
239239
case LUA_TBOOLEAN:
240240
buffer_require(L, b, 1);
241-
b->b[b->pos++] = (char)lua_toboolean(L, index) ? MEMCACHED_TYPE_BOOLEANTRRUE : LUA_TBOOLEAN;
241+
b->b[b->pos++] = (char)lua_toboolean(L, index) ? MEMCACHED_TYPE_BOOLEANTRUE : LUA_TBOOLEAN;
242242
break;
243243

244244
case LUA_TNUMBER:
@@ -387,9 +387,9 @@ static int decode (lua_State *L, memcached_buffer_t *b, backref_t *br) {
387387
lua_pushboolean(L, 0);
388388
break;
389389

390-
case MEMCACHED_TYPE_BOOLEANTRRUE:
391-
lua_pushboolean(L, 1);
392-
break;
390+
case MEMCACHED_TYPE_BOOLEANTRUE:
391+
lua_pushboolean(L, 1);
392+
break;
393393

394394
case LUA_TNUMBER:
395395
buffer_avail(L, b, sizeof(d));

0 commit comments

Comments
 (0)