From f17b172f57b357a3ce3cbc5c359bb615186d9db0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 14 Aug 2008 18:17:39 +0200 Subject: [PATCH] screen: fix screen number on error Signed-off-by: Julien Danjou --- lua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua.h b/lua.h index 8575580e..93e715e0 100644 --- a/lua.h +++ b/lua.h @@ -96,7 +96,7 @@ typedef int luaA_ref; #define luaA_checkscreen(screen) \ do { \ if(screen < 0 || screen >= globalconf.screens_info->nscreen) \ - luaL_error(L, "invalid screen number: %d", screen); \ + luaL_error(L, "invalid screen number: %d", screen + 1); \ } while(0) /** Check that an object is not a NULL reference.