Skip to content

Commit

Permalink
build package for 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abumq committed Feb 27, 2018
1 parent 034d8a2 commit adee9ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion build.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
// Mine ({{version}})
// Single header minimal cryptography library
//
// Copyright (c) 2017-2018 Muflihun Labs
// Copyright (c) 2017-present Muflihun Labs
// Copyright (c) 2017-present @abumusamq
//
// This library is released under the Apache 2.0 license
// https://github.com/muflihun/mine/blob/master/LICENSE
Expand Down
11 changes: 6 additions & 5 deletions package/mine.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
//
// Bismillah ar-Rahmaan ar-Raheem
//
// Mine (1.1.1)
// Mine (1.1.2)
// Single header minimal cryptography library
//
// Copyright (c) 2017-2018 Muflihun Labs
// Copyright (c) 2017-present Muflihun Labs
// Copyright (c) 2017-present @abumusamq
//
// This library is released under the Apache 2.0 license
// https://github.com/muflihun/mine/blob/master/LICENSE
Expand All @@ -30,7 +31,7 @@

using namespace mine;
#ifndef MINE_VERSION
#define MINE_VERSION "1.1.1"
#define MINE_VERSION "1.1.2"
#endif


Expand Down Expand Up @@ -1164,7 +1165,7 @@ std::string ZLib::compressString(const std::string& str)
deflateEnd(&zs);

if (ret != Z_STREAM_END) {
throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string(zs.msg));
throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg"));
}

return outstring;
Expand Down Expand Up @@ -1201,7 +1202,7 @@ std::string ZLib::decompressString(const std::string& str)
inflateEnd(&zs);

if (ret != Z_STREAM_END) {
throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string(zs.msg));
throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg"));
}

return outstring;
Expand Down
5 changes: 3 additions & 2 deletions package/mine.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
//
// Bismillah ar-Rahmaan ar-Raheem
//
// Mine (1.1.1)
// Mine (1.1.2)
// Single header minimal cryptography library
//
// Copyright (c) 2017-2018 Muflihun Labs
// Copyright (c) 2017-present Muflihun Labs
// Copyright (c) 2017-present @abumusamq
//
// This library is released under the Apache 2.0 license
// https://github.com/muflihun/mine/blob/master/LICENSE
Expand Down

0 comments on commit adee9ca

Please sign in to comment.