Explorar el Código

v.in.lidar: use long ints for counts (finish https://trac.osgeo.org/grass/changeset/67316)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67317 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras hace 9 años
padre
commit
41ad22e7b6
Se han modificado 1 ficheros con 19 adiciones y 8 borrados
  1. 19 8
      vector/v.in.lidar/count_decimation.h

+ 19 - 8
vector/v.in.lidar/count_decimation.h

@@ -19,14 +19,25 @@
 /* TODO: revise names (now partially on some vars in v.in.lidar code) */
 
 struct CountDecimationControl {
-    int offset_n;
-    int offset_n_counter;
-    int skip_every;
-    int preserve_every;
-    int every_counter;
-    int n_count_filtered;
-    int limit_n;
-    int limit_n_counter;
+#ifdef HAVE_LONG_LONG_INT
+    unsigned long long offset_n;
+    unsigned long long offset_n_counter;
+    unsigned long long skip_every;
+    unsigned long long preserve_every;
+    unsigned long long every_counter;
+    unsigned long long n_count_filtered;
+    unsigned long long limit_n;
+    unsigned long long limit_n_counter;
+#else
+    unsigned long offset_n;
+    unsigned long offset_n_counter;
+    unsigned long skip_every;
+    unsigned long preserve_every;
+    unsigned long every_counter;
+    unsigned long n_count_filtered;
+    unsigned long limit_n;
+    unsigned long limit_n_counter;
+#endif
 };
 
 void count_decimation_init(struct CountDecimationControl *control,