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

Appearance settings

Commit 1215f78

Browse filesBrowse files
committed
Rename C++ variables to avoid use of reserved identifiers
1 parent 16a051c commit 1215f78
Copy full SHA for 1215f78

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎lib/matplotlib/tri/_tri.cpp

Copy file name to clipboardExpand all lines: lib/matplotlib/tri/_tri.cpp
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,14 +2177,14 @@ TrapezoidMapTriFinder::Trapezoid::set_upper_right(Trapezoid* upper_right_)
21772177

21782178

21792179
RandomNumberGenerator::RandomNumberGenerator(unsigned long seed)
2180-
: _M(21870), _A(1291), _C(4621), _seed(seed % _M)
2180+
: _m(21870), _a(1291), _c(4621), _seed(seed % _m)
21812181
{}
21822182

21832183
unsigned long
21842184
RandomNumberGenerator::operator()(unsigned long max_value)
21852185
{
2186-
_seed = (_seed*_A + _C) % _M;
2187-
return (_seed*max_value) / _M;
2186+
_seed = (_seed*_a + _c) % _m;
2187+
return (_seed*max_value) / _m;
21882188
}
21892189

21902190

‎lib/matplotlib/tri/_tri.h

Copy file name to clipboardExpand all lines: lib/matplotlib/tri/_tri.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ class RandomNumberGenerator
818818
unsigned long operator()(unsigned long max_value);
819819

820820
private:
821-
const unsigned long _M, _A, _C;
821+
const unsigned long _m, _a, _c;
822822
unsigned long _seed;
823823
};
824824

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.