summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ppi-geolocation-common.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
commita86c5f7cae7ec9a3398300555a0b644689d946a1 (patch)
tree39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /epan/dissectors/packet-ppi-geolocation-common.c
parentReleasing progress-linux version 4.2.6-1~progress7.99u1. (diff)
downloadwireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz
wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-ppi-geolocation-common.c')
-rw-r--r--epan/dissectors/packet-ppi-geolocation-common.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/epan/dissectors/packet-ppi-geolocation-common.c b/epan/dissectors/packet-ppi-geolocation-common.c
index 2c6e1007..d77c1285 100644
--- a/epan/dissectors/packet-ppi-geolocation-common.c
+++ b/epan/dissectors/packet-ppi-geolocation-common.c
@@ -16,11 +16,11 @@
/*
* input: a unsigned 32-bit (native endian) value between 0 and 3600000000 (inclusive)
- * output: a signed floating point value betwen -180.0000000 and + 180.0000000, inclusive)
+ * output: a signed floating point value between -180.0000000 and + 180.0000000, inclusive)
*/
-gdouble ppi_fixed3_7_to_gdouble(guint32 in) {
- gint32 remapped_in = in - (180 * 10000000);
- gdouble ret = (gdouble) ((gdouble) remapped_in / 10000000);
+double ppi_fixed3_7_to_double(uint32_t in) {
+ int32_t remapped_in = in - (180 * 10000000);
+ double ret = (double) ((double) remapped_in / 10000000);
return ret;
}
/*
@@ -28,8 +28,8 @@ gdouble ppi_fixed3_7_to_gdouble(guint32 in) {
* output: a positive floating point value between 000.0000000 and 999.9999999
*/
-gdouble ppi_fixed3_6_to_gdouble(guint32 in) {
- gdouble ret = (gdouble) in / 1000000.0;
+double ppi_fixed3_6_to_double(uint32_t in) {
+ double ret = (double) in / 1000000.0;
return ret;
}
@@ -37,15 +37,15 @@ gdouble ppi_fixed3_6_to_gdouble(guint32 in) {
* input: a native 32 bit unsigned value between 0 and 3600000000
* output: a signed floating point value between -180000.0000 and +180000.0000
*/
-gdouble ppi_fixed6_4_to_gdouble(guint32 in) {
- gint32 remapped_in = in - (180000 * 10000);
- gdouble ret = (gdouble) ((gdouble) remapped_in / 10000);
+double ppi_fixed6_4_to_double(uint32_t in) {
+ int32_t remapped_in = in - (180000 * 10000);
+ double ret = (double) ((double) remapped_in / 10000);
return ret;
}
-gdouble ppi_ns_counter_to_gdouble(guint32 in) {
- gdouble ret;
- ret = (gdouble) in / 1000000000;
+double ppi_ns_counter_to_double(uint32_t in) {
+ double ret;
+ ret = (double) in / 1000000000;
return ret;
}