add long/unsigned-long variations to the debug SkIntToScalar, as the mac compiler
makes a distinction between int and long (it appears) git-svn-id: http://skia.googlecode.com/svn/trunk@5157 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
a448cb05f0
commit
cf4335ca4a
@ -79,12 +79,18 @@
|
||||
* int, size_t, U8CPU, etc., even though what we really mean is "anything
|
||||
* but a float".
|
||||
*/
|
||||
static inline float SkIntToScalar(signed int param) {
|
||||
static inline float SkIntToScalar(int param) {
|
||||
return (float)param;
|
||||
}
|
||||
static inline float SkIntToScalar(unsigned int param) {
|
||||
return (float)param;
|
||||
}
|
||||
static inline float SkIntToScalar(long param) {
|
||||
return (float)param;
|
||||
}
|
||||
static inline float SkIntToScalar(unsigned long param) {
|
||||
return (float)param;
|
||||
}
|
||||
static inline float SkIntToScalar(int64_t param) {
|
||||
return (float)param;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user