Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: trunk/src/chrome/browser/devtools/adb/android_rsa.cc

Issue 227743006: Revert 262147 "Remove all uses of GG_LONGLONG and GG_ULONGLONG." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/devtools/adb/android_rsa.cc
===================================================================
--- trunk/src/chrome/browser/devtools/adb/android_rsa.cc (revision 262163)
+++ trunk/src/chrome/browser/devtools/adb/android_rsa.cc (working copy)
@@ -100,7 +100,7 @@
carry_over = 0;
if (sub < 0) {
carry_over = 1;
- sub += 0x100000000LL;
+ sub += GG_LONGLONG(0x100000000);
}
a[i] = static_cast<uint32>(sub);
}
@@ -233,7 +233,7 @@
RSAPublicKey pkey;
pkey.len = kRSANumWords;
pkey.exponent = 65537; // Fixed public exponent
- pkey.n0inv = 0 - ModInverse(n0, 0x100000000LL);
+ pkey.n0inv = 0 - ModInverse(n0, GG_LONGLONG(0x100000000));
if (pkey.n0inv == 0)
return kDummyRSAPublicKey;

Powered by Google App Engine
This is Rietveld 408576698