$OpenBSD: patch-src_expr_c,v 1.1 2009/12/19 23:08:48 sthen Exp $
--- src/expr.c.orig	Fri Dec 18 22:05:11 2009
+++ src/expr.c	Fri Dec 18 22:05:22 2009
@@ -1672,7 +1672,7 @@ void sqlite3CodeSubselect(
       if( sqlite3Select(pParse, pSel, &dest) ){
         return;
       }
-      pExpr->iColumn = (i16)dest.iParm;
+      pExpr->iColumn = dest.iParm;
       ExprSetIrreducible(pExpr);
       break;
     }
