Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite42555e

Browse files
Make code of stamp_arithm's ExtractStr more readable and sensible
1 parent81c61c3 commite42555e

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

‎blobstamper/stamp_arithm.h

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
*
3-
* Copyright 2021 Nikolay Shaplov (Postgres Professional)
3+
* Copyright 2021-2023 Nikolay Shaplov (Postgres Professional)
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -34,15 +34,8 @@ template<class T> class StampArithm: public StampFixed, public StampBaseStr, pub
3434
template<classT> std::string
3535
StampArithm<T>::ExtractStr(Blob &blob)
3636
{
37-
std::string res;
38-
std::vector<char> v =this->ExtractBin(blob);
39-
40-
if (v.size() ==0)
41-
return"";
42-
43-
T *pT = (T *) &v[0];
44-
45-
returnto_string_precise(*pT);
37+
T value =this->ExtractValue(blob);
38+
returnto_string_precise(value);
4639
}
4740

4841
template<classT> T

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp