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

Unified Diff: courgette/crc.cc

Issue 1543643002: Switch to standard integer types in courgette/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « courgette/crc.h ('k') | courgette/difference_estimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/crc.cc
diff --git a/courgette/crc.cc b/courgette/crc.cc
index 28a0f9c0d8f1191d575b28c50419d29a4eb44d57..2b86b6861f854e2e9ecdb446971367c1abf9e754 100644
--- a/courgette/crc.cc
+++ b/courgette/crc.cc
@@ -4,6 +4,9 @@
#include "courgette/crc.h"
+#include <stdint.h>
+#include <stddef.h>
+
#ifdef COURGETTE_USE_CRC_LIB
# include "zlib.h"
#else
@@ -12,12 +15,11 @@ extern "C" {
}
#endif
-#include "base/basictypes.h"
namespace courgette {
-uint32 CalculateCrc(const uint8* buffer, size_t size) {
- uint32 crc;
+uint32_t CalculateCrc(const uint8_t* buffer, size_t size) {
+ uint32_t crc;
#ifdef COURGETTE_USE_CRC_LIB
// Calculate Crc by calling CRC method in zlib
« no previous file with comments | « courgette/crc.h ('k') | courgette/difference_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698