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

Unified Diff: runtime/bin/crypto.cc

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « runtime/bin/crypto.h ('k') | runtime/bin/crypto_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/crypto.cc
diff --git a/runtime/bin/crypto.cc b/runtime/bin/crypto.cc
index ec4840fdde94ca06249343653aa68d607a2228c9..24b5f2bda80f5fa4700866988b1ecd0c131fce92 100644
--- a/runtime/bin/crypto.cc
+++ b/runtime/bin/crypto.cc
@@ -14,11 +14,11 @@ void FUNCTION_NAME(Crypto_GetRandomBytes)(Dart_NativeArguments args) {
Dart_Handle count_obj = Dart_GetNativeArgument(args, 0);
const int64_t kMaxRandomBytes = 4096;
int64_t count64 = 0;
- if (!DartUtils::GetInt64Value(count_obj, &count64) ||
- (count64 < 0) || (count64 > kMaxRandomBytes)) {
- Dart_Handle error =
- DartUtils::NewString("Invalid argument: count must be a positive int "
- "less than or equal to 4096.");
+ if (!DartUtils::GetInt64Value(count_obj, &count64) || (count64 < 0) ||
+ (count64 > kMaxRandomBytes)) {
+ Dart_Handle error = DartUtils::NewString(
+ "Invalid argument: count must be a positive int "
+ "less than or equal to 4096.");
Dart_ThrowException(error);
}
intptr_t count = static_cast<intptr_t>(count64);
« no previous file with comments | « runtime/bin/crypto.h ('k') | runtime/bin/crypto_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698