diff options
Diffstat (limited to 'decuda_to_ptxplus/decuda.y')
| -rw-r--r-- | decuda_to_ptxplus/decuda.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decuda_to_ptxplus/decuda.y b/decuda_to_ptxplus/decuda.y index 9c8a5e7..0b297f8 100644 --- a/decuda_to_ptxplus/decuda.y +++ b/decuda_to_ptxplus/decuda.y @@ -313,10 +313,10 @@ constMemoryStatements : constMemoryStatement constMemoryStatement : POUND constMemoryTypes constMemoryList { g_instList->setConstMemoryType($2); } NEWLINE -constMemoryTypes : DDOTU32 { char tempString[5]; +constMemoryTypes : DDOTU32 { char* tempString = new char[5]; strcpy(tempString, ".u32"); $$ = tempString; } - | DDOTF32 { char tempString[5]; + | DDOTF32 { char* tempString = new char[5]; strcpy(tempString, ".f32"); $$ = tempString; } ; |
