Inline pow_neg - removes build warning (#891)

1.2-legacy
syund 2021-10-22 20:40:43 -04:00 zatwierdzone przez GitHub
rodzic 4fb844bddd
commit 6fc3c9c868
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -14,7 +14,7 @@
// Helper functions // Helper functions
// Raises a number to an exponent, handling negative exponents. // Raises a number to an exponent, handling negative exponents.
static double pow_neg(double base, double exponent) { static inline double pow_neg(double base, double exponent) {
if (exponent == 0) { if (exponent == 0) {
return 1; return 1;
} else if (exponent > 0) { } else if (exponent > 0) {