aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-03-31 16:09:41 -0500
committertlatorre <tlatorre@uchicago.edu>2019-03-31 16:09:41 -0500
commitd5b09631af421d46e65fc8f75dcdab0678cb4cb3 (patch)
treea92c38378655d78c543487ae69348f8a6fb84d63 /src/misc.c
parent02842a0876f5f39bf8e56ceac8cb9b8ff62b943e (diff)
downloadsddm-d5b09631af421d46e65fc8f75dcdab0678cb4cb3.tar.gz
sddm-d5b09631af421d46e65fc8f75dcdab0678cb4cb3.tar.bz2
sddm-d5b09631af421d46e65fc8f75dcdab0678cb4cb3.zip
fix a few typos in interp2d()
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc.c b/src/misc.c
index 56be84f..e6939f7 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -419,13 +419,13 @@ double interp2d(double x, double y, double *xp, double *yp, double *zp, size_t n
double q11, q12, q21, q22;
double idx, idy;
- if (x <= xp[0]) {
+ if (x < xp[0]) {
fprintf(stderr, "x < xp[0]!\n");
exit(1);
}
- if (y <= yp[0]) {
- fprintf(stderr, "y < xp[0]!\n");
+ if (y < yp[0]) {
+ fprintf(stderr, "y < yp[0]!\n");
exit(1);
}