[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem compiling __contourc__.cc
From: |
kahacjde |
Subject: |
Re: Problem compiling __contourc__.cc |
Date: |
Thu, 25 Oct 2007 01:14:43 -0700 (PDT) |
Michael Goffioul-2 wrote:
>
> Hi,
>
> I found 2 type of problems while compilint the new __contourc__.cc
> with MSVC:
> 1) "uint" type is not known, should be replaced by "unsigned int"
> 2) "pow" calls lead to compilation error in C++ context: MSVC defines
> several overloaded versions of the pow function and it can't resolve
> ambiguity when trying to match (int, unsigned int) argument.
>
> I'm writing this mail because of the second point. I could add explicit
> casting to the arguments to solve the problem, but looking at the code,
> it seems the pow function is only used to get powers of 2.
> So I wondered why not simply use left shift instead?
>
> Michael.
>
>
Regarding the pow problem:
Yes I thought about using left shifts too, but in the end I neved changed it
...
So, could you propose a patch here, otherwise I will look at this later
today.
Kai
--
View this message in context:
http://www.nabble.com/Problem-compiling-__contourc__.cc-tf4689151.html#a13401921
Sent from the Octave - Maintainers mailing list archive at Nabble.com.