summaryrefslogtreecommitdiff
path: root/src/SFML/Window/OSX/NSImage+raw.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/SFML/Window/OSX/NSImage+raw.mm')
-rw-r--r--src/SFML/Window/OSX/NSImage+raw.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SFML/Window/OSX/NSImage+raw.mm b/src/SFML/Window/OSX/NSImage+raw.mm
index 56ee6c9..f8b05a6 100644
--- a/src/SFML/Window/OSX/NSImage+raw.mm
+++ b/src/SFML/Window/OSX/NSImage+raw.mm
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2018 Marco Antognini (antognini.marco@gmail.com),
+// Copyright (C) 2007-2023 Marco Antognini (antognini.marco@gmail.com),
// Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
@@ -35,8 +35,8 @@
// Create an empty image representation.
NSBitmapImageRep* bitmap =
[[NSBitmapImageRep alloc] initWithBitmapDataPlanes:0 // if 0: only allocate memory
- pixelsWide:size.width
- pixelsHigh:size.height
+ pixelsWide:(static_cast<NSInteger>(size.width))
+ pixelsHigh:(static_cast<NSInteger>(size.height))
bitsPerSample:8 // The number of bits used to specify
// one pixel in a single component of the data.
samplesPerPixel:4 // 3 if no alpha, 4 with it