Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1036001 // clampUByteInt

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (52L) is out of date.

1  
static int clampUByteInt(long l) {
2  
  ret (int) clamp(l, 0, 255);
3  
}
4  
5  
static int clampUByteInt(int i) {
6  
  ret clamp(i, 0, 255);
7  
}

Author comment

Began life as a copy of #1036000

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036001
Snippet name: clampUByteInt
Eternal ID of this version: #1036001/4
Text MD5: 5f9e3c5b0d2e331d1249aee336991601
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-21 12:47:16
Source code size: 133 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 183
Version history: 3 change(s)
Referenced in: [show references]