geodesic_wgs84 1.32.9 → 1.32.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/geodesic_wgs84/geodesic_wgs84.c +6 -6
- data/lib/geodesic_wgs84/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b99238ae9600695548c72ccafb08f4f6584ee97
|
|
4
|
+
data.tar.gz: b8bedcec2dd05794eb4aa129d010825baca6e2de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa47c46643432c3a0c0d7d8f2357e373397157c69e7c33eaa2c4c2869daae9696ca3c8ca7476daec9b8c89c9e88aa5c75d3e5d97cd78c2d546ca26a1fa81e97b
|
|
7
|
+
data.tar.gz: d67c7aaa8c5a1be0d63460229b07aa45365898973722a1ec36568e9964f8adde9b8c86238784559a2b8d2e1fe32b00f01e17fea292608d36a705bae5847e9904
|
|
@@ -33,12 +33,6 @@ wgs84_get_value(VALUE arg)
|
|
|
33
33
|
int dd, mm, ss, ff;
|
|
34
34
|
double dbl;
|
|
35
35
|
|
|
36
|
-
if (TYPE(arg) == T_FLOAT)
|
|
37
|
-
return NUM2DBL(arg);
|
|
38
|
-
|
|
39
|
-
if (TYPE(arg) == T_FIXNUM)
|
|
40
|
-
return (double) NUM2INT(arg);
|
|
41
|
-
|
|
42
36
|
if (TYPE(arg) == T_STRING && RSTRING_LEN(arg) < 60) {
|
|
43
37
|
memset(buf, 0, sizeof(buf));
|
|
44
38
|
memcpy(buf, RSTRING_PTR(arg), RSTRING_LEN(arg));
|
|
@@ -58,6 +52,12 @@ wgs84_get_value(VALUE arg)
|
|
|
58
52
|
}
|
|
59
53
|
}
|
|
60
54
|
|
|
55
|
+
if (TYPE(arg) == T_FLOAT)
|
|
56
|
+
return NUM2DBL(arg);
|
|
57
|
+
|
|
58
|
+
if (TYPE(arg) == T_FIXNUM)
|
|
59
|
+
return (double) NUM2INT(arg);
|
|
60
|
+
|
|
61
61
|
rb_raise(rb_eArgError, "invalid (lat/lon) argument");
|
|
62
62
|
return 0.0;
|
|
63
63
|
}
|