summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index d365c7c..9930f8a 100644
--- a/src/code.l
+++ b/src/code.l
@@ -565,7 +565,7 @@ static void codifyLines(const char *text)
{
g_yyLineNr++;
//*(p-1)='\0';
- int l = p-sp-1;
+ int l = (int)(p-sp-1);
char *tmp = (char*)malloc(l+1);
memcpy(tmp,sp,l);
tmp[l]='\0';