You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by md...@apache.org on 2018/03/15 11:29:46 UTC
orc git commit: ORC-319: [C++] should not throw a pointer of exception
Repository: orc
Updated Branches:
refs/heads/master 59c359dfc -> 3d44366a4
ORC-319: [C++] should not throw a pointer of exception
Fixes #228
Signed-off-by: Deepak Majeti <md...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/orc/repo
Commit: http://git-wip-us.apache.org/repos/asf/orc/commit/3d44366a
Tree: http://git-wip-us.apache.org/repos/asf/orc/tree/3d44366a
Diff: http://git-wip-us.apache.org/repos/asf/orc/diff/3d44366a
Branch: refs/heads/master
Commit: 3d44366a4cb65df05e6925078c46fcae0df0f8a5
Parents: 59c359d
Author: stiga-huang <hu...@gmail.com>
Authored: Thu Mar 8 04:21:51 2018 -0800
Committer: Deepak Majeti <md...@apache.org>
Committed: Thu Mar 15 07:29:01 2018 -0400
----------------------------------------------------------------------
c++/src/Compression.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/orc/blob/3d44366a/c++/src/Compression.cc
----------------------------------------------------------------------
diff --git a/c++/src/Compression.cc b/c++/src/Compression.cc
index b91f932..2f81c5d 100644
--- a/c++/src/Compression.cc
+++ b/c++/src/Compression.cc
@@ -879,7 +879,7 @@ DIAGNOSTIC_POP
int result = LZ4_decompress_safe(input, output, static_cast<int>(length),
static_cast<int>(maxOutputLength));
if (result < 0) {
- throw new ParseError(getName() + " - failed to decompress");
+ throw ParseError(getName() + " - failed to decompress");
}
return static_cast<uint64_t>(result);
}