[Freeciv-Dev] Re: [patch] const-int-ize SETTINGS_NUM
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> There's no point in doing so since the compiler will generate
> identical code, and you can't use const ints as array size and at some
> other places.
I knew the sizeof() wasn't the problem, but I wasn't sure if the divide
would be optimized out, which is what I was trying to remove. Plus I
didn't find any places where the const int would be a problem; it was used
entirely as a function parameter or a loop test. *shrug*
-jdm
|
|