summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2012-10-02 22:45:40 +0100
committerReuben Thomas <rrt@sc3d.org>2012-10-02 22:45:40 +0100
commit9aa4c1baae4872950e587b3a950c5f1e03d9e1ea (patch)
tree279a6602ce8ae2b18a0e6b4af071da165701a8d8
parent2cdbe1c4460249a5d2d865d4406fc06a64dcd560 (diff)
downloadlrexlib-9aa4c1baae4872950e587b3a950c5f1e03d9e1ea.tar.gz
lonig.c: fix a mismatched type in two results of ?:; closes issue #1
-rw-r--r--src/oniguruma/lonig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oniguruma/lonig.c b/src/oniguruma/lonig.c
index d97f922..d622445 100644
--- a/src/oniguruma/lonig.c
+++ b/src/oniguruma/lonig.c
@@ -46,7 +46,7 @@ static void checkarg_compile (lua_State *L, int pos, TArgComp *argC);
lua_pushlstring (L, (text) + ALG_SUBBEG(ud,n), ALG_SUBLEN(ud,n))
#define ALG_PUSHSUB_OR_FALSE(L,ud,text,n) \
- (ALG_SUBVALID(ud,n) ? ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
+ (ALG_SUBVALID(ud,n) ? (void) ALG_PUSHSUB (L,ud,text,n) : lua_pushboolean (L,0))
#define ALG_PUSHSTART(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBBEG(ud,n) + 1)
#define ALG_PUSHEND(L,ud,offs,n) lua_pushinteger(L, (offs) + ALG_SUBEND(ud,n))