Skip to content

Commit 984525c

Browse files
committed
Change ushort to unsigned short in cpp
1 parent 4a2b3bc commit 984525c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/api/cpp/array.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace af
8585
case c32: return sizeof(float) * 2;
8686
case c64: return sizeof(double) * 2;
8787
case s16: return sizeof(short);
88-
case u16: return sizeof(ushort);
88+
case u16: return sizeof(unsigned short);
8989
default: return sizeof(float);
9090
}
9191
}
@@ -222,7 +222,7 @@ namespace af
222222
INSTANTIATE(intl)
223223
INSTANTIATE(uintl)
224224
INSTANTIATE(short)
225-
INSTANTIATE(ushort)
225+
INSTANTIATE(unsigned short)
226226

227227
#undef INSTANTIATE
228228

@@ -1029,8 +1029,8 @@ af::dtype implicit_dtype(af::dtype scalar_type, af::dtype array_type)
10291029
INSTANTIATE(char)
10301030
INSTANTIATE(intl)
10311031
INSTANTIATE(uintl)
1032-
INSTANTIATE(short);
1033-
INSTANTIATE(ushort);
1032+
INSTANTIATE(short)
1033+
INSTANTIATE(unsigned short)
10341034

10351035
#undef INSTANTIATE
10361036

@@ -1059,8 +1059,8 @@ af::dtype implicit_dtype(af::dtype scalar_type, af::dtype array_type)
10591059
INSTANTIATE(char)
10601060
INSTANTIATE(intl)
10611061
INSTANTIATE(uintl)
1062-
INSTANTIATE(short);
1063-
INSTANTIATE(ushort);
1062+
INSTANTIATE(short)
1063+
INSTANTIATE(unsigned short)
10641064

10651065
#undef INSTANTIATE
10661066
#undef TEMPLATE_MEM_FUNC

src/api/cpp/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace af
9292
case c32: return sizeof(float) * 2;
9393
case c64: return sizeof(double) * 2;
9494
case s16: return sizeof(short);
95-
case u16: return sizeof(ushort);
95+
case u16: return sizeof(unsigned short);
9696
default: return sizeof(float);
9797
}
9898
}

0 commit comments

Comments
 (0)