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

Unified Diff: cmake/example.cpp

Issue 1975933002: cmake: fixes for windows (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « cmake/README.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmake/example.cpp
diff --git a/cmake/example.cpp b/cmake/example.cpp
index 20259b558928bdf05dde2b53d53c75402193c976..38ce901450916b2640f0f89b52b3951da59b959d 100644
--- a/cmake/example.cpp
+++ b/cmake/example.cpp
@@ -60,7 +60,7 @@ static std::shared_ptr<SkSurface> create_opengl_surface(int w, int h) {
int main(int, char**) {
bool gl_ok = setup_gl_context();
- srand(time(nullptr));
+ srand((unsigned)time(nullptr));
std::shared_ptr<SkSurface> surface = (gl_ok && rand() % 2) ? create_opengl_surface(320, 240)
: create_raster_surface(320, 240);
« no previous file with comments | « cmake/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698