Skip to content

Commit 926781c

Browse files
committed
---
yaml --- r: 222686 b: refs/heads/tmp c: 7466590 h: refs/heads/master v: v3
1 parent 3db9f4e commit 926781c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: 2b45108ecb944d63daba0f1b5529ac4c8afdc295
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 069681a95327d8b49a26a8fd60aa6a9ecaaf52c4
28+
refs/heads/tmp: 74665906ab3f8a2808da7671022ac13f8fa12fbd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/conversions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ expression, `e as U2` is not necessarily so (in fact it will only be valid if
210210
For numeric casts, there are quite a few cases to consider:
211211

212212
* casting between two integers of the same size (e.g. i32 -> u32) is a no-op
213-
* casting from a smaller integer to a bigger integer (e.g. u32 -> u8) will truncate
214-
* casting from a larger integer to a smaller integer (e.g. u8 -> u32) will
215-
* zero-extend if the target is unsigned
216-
* sign-extend if the target is signed
213+
* casting from a larger integer to a smaller integer (e.g. u32 -> u8) will truncate
214+
* casting from a smaller integer to a larger integer (e.g. u8 -> u32) will
215+
* zero-extend if the source is unsigned
216+
* sign-extend if the source is signed
217217
* casting from a float to an integer will round the float towards zero
218218
* **NOTE: currently this will cause Undefined Behaviour if the rounded
219219
value cannot be represented by the target integer type**. This is a bug

0 commit comments

Comments
 (0)