Now using enum values instead of numbers in gswe_calculate_data_by_position()

It's just more beautiful.
This commit is contained in:
Gergely Polonkai 2013-09-22 18:56:55 +02:00
parent cac67e57e3
commit 4f61aea449

View File

@ -477,8 +477,8 @@ gswe_calculate_data_by_position(GsweMoment *moment, GswePlanet planet, gdouble p
// If position happens to be exactly 0, this calculation yields
// GSWE_SIGN_NONE, but should be GSWE_SIGN_ARIES
if (sign == 0) {
sign = 1;
if (sign == GSWE_SIGN_NONE) {
sign = GSWE_SIGN_ARIES;
}
if ((sign_info = g_hash_table_lookup(gswe_sign_info_table, GINT_TO_POINTER(sign))) == NULL) {