From 2b8b32a2f0627804a5f4af01cedcacffb386c337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 4 Feb 2011 16:55:51 +0100 Subject: [PATCH] Fixed warning in gensylv --- dynare++/sylv/matlab/gensylv.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dynare++/sylv/matlab/gensylv.cpp b/dynare++/sylv/matlab/gensylv.cpp index 0a0d7e391..b619afda8 100644 --- a/dynare++/sylv/matlab/gensylv.cpp +++ b/dynare++/sylv/matlab/gensylv.cpp @@ -1,6 +1,4 @@ -/* $Header: /var/lib/cvs/dynare_cpp/sylv/matlab/gensylv.cpp,v 1.1.1.1 2004/06/04 13:01:13 kamenik Exp $ */ - -/* Tag $Name: $ */ +// Copyright (C) 2005-2011, Ondra Kamenik #include "dynmex.h" #include "mex.h" @@ -55,7 +53,7 @@ extern "C" { DYN_MEX_FUNC_ERR_MSG_TXT("Matrix C must be square."); if (Bdims[0] < Bdims[1]) DYN_MEX_FUNC_ERR_MSG_TXT("Matrix B must not have more columns than rows."); - if (Ddims[1] != power(Cdims[0], order)) + if (Ddims[1] != (mwSize) power(Cdims[0], order)) DYN_MEX_FUNC_ERR_MSG_TXT("Matrix D has wrong number of columns."); int n = Adims[0];