Skip to content

Commit

Permalink
Merge branch '307412ca-1e02-41c3-b9c8-50a889e6982d' of https://github…
Browse files Browse the repository at this point in the history
….com/Smattr/linux-insides into Smattr-307412ca-1e02-41c3-b9c8-50a889e6982d
  • Loading branch information
0xAX committed Oct 29, 2016
2 parents 9db9f8d + 5954812 commit a9e59b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Theory/asm.md
Expand Up @@ -309,7 +309,7 @@ a = 100
Or for example `I` which represents an immediate 32-bit integer. The difference between `i` and `I` is that `i` is general, whereas `I` is strictly specified to 32-bit integer data. For example if you try to compile the following
```C
int test_asm(int nr)
unsigned long test_asm(int nr)
{
unsigned long a = 0;
Expand All @@ -332,7 +332,7 @@ test.c:7:9: error: impossible constraint in ‘asm’
when at the same time

```C
int test_asm(int nr)
unsigned long test_asm(int nr)
{
unsigned long a = 0;

Expand Down Expand Up @@ -360,7 +360,7 @@ int main(void)
static unsigned long element;
__asm__ volatile("movq 16+%1, %0" : "=r"(element) : "o"(arr));
printf("%d\n", element);
printf("%lu\n", element);
return 0;
}
```
Expand Down
1 change: 1 addition & 0 deletions contributors.md
Expand Up @@ -99,3 +99,4 @@ Thank you to all contributors:
* [Anastas Stoyanovsky](https://github.com/anastasds)
* [Faiz Halde](https://github.com/7coder7)
* [Andrew Hayes](https://github.com/AndrewRussellHayes)
* [Matthew Fernandez](https://github.com/Smattr)

0 comments on commit a9e59b5

Please sign in to comment.