Permalink
Browse files

Merge pull request #45 from ymmtmdk/passing_boolean

Avoid a warning
  • Loading branch information...
2 parents 9d08bf9 + 558d110 commit 20a1a4c8c3889ad4d110afb3c5224ee40c086e24 @whitequark whitequark committed Jun 8, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/hello.rb
View
@@ -11,7 +11,7 @@
# Declare the string constant as a global constant.
hello = mod.globals.add(LLVM::ConstantArray.string(HELLO_STRING) , :hello) do |var|
var.linkage = :private
- var.global_constant = 1
+ var.global_constant = true
var.unnamed_addr = true
var.initializer = LLVM::ConstantArray.string(HELLO_STRING)
end

0 comments on commit 20a1a4c

Please sign in to comment.