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

Unified Diff: base/win/scoped_bstr.cc

Issue 1550493002: Switch to standard integer types in base/win/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « base/win/scoped_bstr.h ('k') | base/win/scoped_bstr_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/scoped_bstr.cc
diff --git a/base/win/scoped_bstr.cc b/base/win/scoped_bstr.cc
index 298318dbc03d279f79fb02695a584ce995c4043c..02f3d541222cf8918f5b9374379c2c327136973c 100644
--- a/base/win/scoped_bstr.cc
+++ b/base/win/scoped_bstr.cc
@@ -4,6 +4,8 @@
#include "base/win/scoped_bstr.h"
+#include <stdint.h>
+
#include "base/logging.h"
namespace base {
@@ -55,8 +57,8 @@ BSTR ScopedBstr::AllocateBytes(size_t bytes) {
void ScopedBstr::SetByteLen(size_t bytes) {
DCHECK(bstr_ != NULL) << "attempting to modify a NULL bstr";
- uint32* data = reinterpret_cast<uint32*>(bstr_);
- data[-1] = static_cast<uint32>(bytes);
+ uint32_t* data = reinterpret_cast<uint32_t*>(bstr_);
+ data[-1] = static_cast<uint32_t>(bytes);
}
size_t ScopedBstr::Length() const {
« no previous file with comments | « base/win/scoped_bstr.h ('k') | base/win/scoped_bstr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698