summaryrefslogtreecommitdiff
path: root/src/KM_error.h
diff options
context:
space:
mode:
authormsheby <msheby@cinecert.com>2007-10-29 21:24:32 +0000
committermsheby <>2007-10-29 21:24:32 +0000
commitaff131e971b71a648caaae20b6a9c84207085321 (patch)
treee5158febbc7cb462716f5bfa391ccff4cfc0e2b8 /src/KM_error.h
parent57ddb7894042229bbc5f14e9257068afcc6f8725 (diff)
Windows portability fixes.
Diffstat (limited to 'src/KM_error.h')
-rwxr-xr-xsrc/KM_error.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/KM_error.h b/src/KM_error.h
index 2d3513a..31d4f3e 100755
--- a/src/KM_error.h
+++ b/src/KM_error.h
@@ -43,14 +43,14 @@ namespace Kumu
class Result_t
{
- long value;
+ int value;
const char* label;
Result_t();
public:
- static const Result_t& Find(long);
+ static const Result_t& Find(int);
- Result_t(long v, const char* l);
+ Result_t(int v, const char* l);
~Result_t();
inline bool operator==(const Result_t& rhs) const { return value == rhs.value; }
@@ -58,8 +58,8 @@ namespace Kumu
inline bool Success() const { return ( value >= 0 ); }
inline bool Failure() const { return ( value < 0 ); }
- inline long Value() const { return value; }
- inline operator long() const { return value; }
+ inline int Value() const { return value; }
+ inline operator int() const { return value; }
inline const char* Label() const { return label; }
inline operator const char*() const { return label; }