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

Side by Side Diff: src/core/SkDebug.cpp

Issue 147683003: fix more 64bit warnings (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samplecode/SampleSlides.cpp ('k') | src/core/SkFlate.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkTypes.h" 10 #include "SkTypes.h"
(...skipping 28 matching lines...) Expand all
39 uint32_t SkToU32(uintmax_t x) { 39 uint32_t SkToU32(uintmax_t x) {
40 SkASSERT((uint32_t)x == x); 40 SkASSERT((uint32_t)x == x);
41 return (uint32_t)x; 41 return (uint32_t)x;
42 } 42 }
43 43
44 int SkToInt(intmax_t x) { 44 int SkToInt(intmax_t x) {
45 SkASSERT((int)x == x); 45 SkASSERT((int)x == x);
46 return (int)x; 46 return (int)x;
47 } 47 }
48 48
49 unsigned SkToUInt(uintmax_t x) {
50 SkASSERT((unsigned)x == x);
51 return (unsigned)x;
52 }
53
49 #endif 54 #endif
OLDNEW
« no previous file with comments | « samplecode/SampleSlides.cpp ('k') | src/core/SkFlate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698