From f4cd0a116743273a27450e31b1764c3c17290ca2 Mon Sep 17 00:00:00 2001
From: Dimitar Misev <misev@rasdaman.com>
Date: Fri, 30 Jan 2015 12:33:55 +0100
Subject: [PATCH] ticket:888 - make interval long long
---
catalogmgr/nullvalues.hh | 20 ++++++++++++++++++++
conversion/netcdf.cc | 4 ++--
raslib/odmgtypes.hh | 4 ++--
3 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/catalogmgr/nullvalues.hh b/catalogmgr/nullvalues.hh
index 79d2ce1..0d74ab7 100644
a
|
b
|
public:
|
112 | 112 | return false; |
113 | 113 | } |
114 | 114 | |
| 115 | inline bool isNull(int value) |
| 116 | { |
| 117 | if (nullValues != NULL && nullValues->within_bounds<int>(value)) |
| 118 | { |
| 119 | incCount(); |
| 120 | return true; |
| 121 | } |
| 122 | return false; |
| 123 | } |
| 124 | |
| 125 | inline bool isNull(unsigned int value) |
| 126 | { |
| 127 | if (nullValues != NULL && nullValues->within_bounds<unsigned int>(value)) |
| 128 | { |
| 129 | incCount(); |
| 130 | return true; |
| 131 | } |
| 132 | return false; |
| 133 | } |
| 134 | |
115 | 135 | inline bool isNull(r_Long value) |
116 | 136 | { |
117 | 137 | if (nullValues != NULL && nullValues->within_bounds<r_Long>(value)) |
diff --git a/conversion/netcdf.cc b/conversion/netcdf.cc
index 52f36bd..653b07d 100644
a
|
b
|
r_convDesc &r_Conv_NETCDF::convertTo(const char *options) throw (r_Error)
|
300 | 300 | { |
301 | 301 | r_Long *val = (r_Long* &) src; |
302 | 302 | NcVar *ncVar = dataFile.add_var(varName, ncInt, dimNo, dims); |
303 | | ncVar->put(val, dimSizes); |
| 303 | ncVar->put((int*) val, dimSizes); |
304 | 304 | break; |
305 | 305 | } |
306 | 306 | case ctype_uint32: |
… |
… |
r_convDesc &r_Conv_NETCDF::convertTo(const char *options) throw (r_Error)
|
483 | 483 | } |
484 | 484 | r_Long *val = (r_Long*) buff; |
485 | 485 | NcVar *ncVar = dataFile.add_var(varName, ncInt, dimNo, dims); |
486 | | ncVar->put(val, dimSizes); |
| 486 | ncVar->put((int*)val, dimSizes); |
487 | 487 | delete [] buff; |
488 | 488 | break; |
489 | 489 | } |
diff --git a/raslib/odmgtypes.hh b/raslib/odmgtypes.hh
index e1809f2..1441bfe 100644
a
|
b
|
typedef unsigned short r_UShort;
|
97 | 97 | //@Args: as long (4 bytes) |
98 | 98 | //@Memo: Module: {\bf rasodmg}. |
99 | 99 | |
100 | | typedef int r_Long; |
| 100 | typedef long long r_Long; |
101 | 101 | /** |
102 | 102 | {\tt typedef int r_Long;} |
103 | 103 | */ |
… |
… |
typedef int r_Long;
|
111 | 111 | //@Args: as unsigned long (4 bytes) |
112 | 112 | //@Memo: Module: {\bf rasodmg}. |
113 | 113 | |
114 | | typedef unsigned int r_ULong; |
| 114 | typedef unsigned long long r_ULong; |
115 | 115 | /** |
116 | 116 | {\tt typedef unsigned long r_ULong;} |
117 | 117 | */ |