mirror of
https://github.com/github/codeql.git
synced 2026-04-12 02:24:00 +02:00
6 lines
161 B
C++
6 lines
161 B
C++
void f(char *p) {
|
|
int my_ptr = p; //Wrong: pointer assigned to int, would be incorrect if sizeof(char*)
|
|
//is larger than sizeof(int)
|
|
//...
|
|
}
|