Libraryless. Click here for Pure Java version (47L/1K).
static short clampToShort(int i) { ret (short) clamp(i, Short.MIN_VALUE, Short.MAX_VALUE); }
Began life as a copy of #1032500
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1032985 |
| Snippet name: | clampToShort |
| Eternal ID of this version: | #1032985/3 |
| Text MD5: | 05630dad07fbb7adb91ff51f8545da83 |
| Transpilation MD5: | f44049f5dc64be541f4844a756ef1683 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-11 07:36:32 |
| Source code size: | 96 bytes / 3 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 379 / 474 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |