Skip to content

Commit d3a418b

Browse files
committed
Fixed from_chars calls
1 parent 69591ea commit d3a418b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/matplot/backend/gnuplot.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ namespace matplot::backend {
361361
const auto minor = word_after(major, ".");
362362
const auto patch = word_after(version_str, "patchlevel");
363363
if (!major.empty() && !minor.empty() && !patch.empty()) {
364-
std::from_chars(major.begin(), major.end(), version.major);
365-
std::from_chars(minor.begin(), minor.end(), version.minor);
366-
std::from_chars(patch.begin(), patch.end(), version.patch);
364+
std::from_chars(major.data(), major.data()+major.length(), version.major);
365+
std::from_chars(minor.data(), minor.data()+minor.length(), version.minor);
366+
std::from_chars(patch.data(), patch.data()+patch.length(), version.patch);
367367
}
368368
}
369369
if (!version)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy