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.

static int clampUByteInt(long l) {
  ret (int) clamp(l, 0, 255);
}

static int clampUByteInt(int i) {
  ret clamp(i, 0, 255);
}

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: 128 / 179
Version history: 3 change(s)
Referenced in: [show references]